it.haefelinger.flaka.util
Class HttpUpload

java.lang.Object
  extended by it.haefelinger.flaka.util.HttpUpload

public class HttpUpload
extends Object

Since:
1.0
Author:
merzedes

Field Summary
protected  boolean debug
           
protected static String ENDPOINT
           
protected  Properties param
           
protected static String PASSWD
           
protected static Pattern SUBMI_P
           
protected static String TESTONLY
           
protected static String TIMEOUT
           
protected static String USER
           
 
Constructor Summary
HttpUpload()
           
 
Method Summary
protected static void debug(boolean b)
           
protected  boolean eval(HttpMethod meth)
          Evaluate whether uploading went well or failed.
protected  boolean exec(HttpMethod meth)
           
 String get(String name, String otherwise)
          Get value of attribute
 String getError()
           
protected static String getResponseFrom(HttpMethod meth)
           
static void main(String[] args)
           
 void reset()
           
 String set(String name, String value)
           
protected  void setcred(HttpClient client)
           
 void setDebug(boolean b)
           
protected  void settimeout(HttpClient client)
           
protected static void syslog(String s)
           
 boolean upload()
           
protected static void xmlattr(StringBuffer buf, String key, String val)
           
protected static void xmldata(StringBuffer buf, String elm, String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBMI_P

protected static final Pattern SUBMI_P

ENDPOINT

protected static String ENDPOINT

TIMEOUT

protected static String TIMEOUT

TESTONLY

protected static String TESTONLY

USER

protected static String USER

PASSWD

protected static String PASSWD

param

protected Properties param

debug

protected boolean debug
Constructor Detail

HttpUpload

public HttpUpload()
Method Detail

reset

public void reset()

get

public String get(String name,
                  String otherwise)
Get value of attribute


set

public String set(String name,
                  String value)

syslog

protected static void syslog(String s)

setDebug

public void setDebug(boolean b)

debug

protected static void debug(boolean b)

getError

public String getError()

xmlattr

protected static void xmlattr(StringBuffer buf,
                              String key,
                              String val)

xmldata

protected static void xmldata(StringBuffer buf,
                              String elm,
                              String val)

getResponseFrom

protected static String getResponseFrom(HttpMethod meth)

eval

protected boolean eval(HttpMethod meth)
Evaluate whether uploading went well or failed. A upload on Jdepot may fail cause a connection could not be established or cause there was an application specific problem (like artifact exits already or Manifest does not contain required or wrong attributes).

Parameters:
meth - not null
Returns:
true if all went well

setcred

protected void setcred(HttpClient client)

settimeout

protected void settimeout(HttpClient client)

exec

protected boolean exec(HttpMethod meth)

upload

public boolean upload()

main

public static void main(String[] args)