it.haefelinger.flaka.util
Class HttpUpload
java.lang.Object
it.haefelinger.flaka.util.HttpUpload
public class HttpUpload
- extends Object
- Since:
- 1.0
- Author:
- merzedes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
HttpUpload
public HttpUpload()
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)