|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.net.http.HttpClientUtil
public final class HttpClientUtil
Utitlities class for HTTP Client
Field Summary | |
---|---|
static short |
MAX_REDIRECT
Maximal count of redirects (5) |
static int |
STATUS_REDIRECT_FOUND
Constant value for HTTP Status Code "Found 302" |
static int |
STATUS_REDIRECT_MOVED_PERMANENTLY
Constant value for HTTP Status Code "moved Permanently 301" |
static int |
STATUS_REDIRECT_SEE_OTHER
Constant value for HTTP Status Code "see other 303" |
Constructor Summary | |
---|---|
HttpClientUtil()
|
Method Summary | |
---|---|
static org.apache.commons.httpclient.HttpMethod |
clone(org.apache.commons.httpclient.HttpMethod src,
URL url)
FUNKTIONIERT NICHT, HOST WIRD NICHT マBERNOMMEN Clones a http method and sets a new url |
static org.apache.commons.httpclient.HttpMethod |
execute(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
boolean doRedirect)
Execute a HTTTP Client and follow redirect over different hosts |
static String |
mergePath(String current,
String realPath)
merge to pathes to one |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short MAX_REDIRECT
public static final int STATUS_REDIRECT_MOVED_PERMANENTLY
public static final int STATUS_REDIRECT_FOUND
public static final int STATUS_REDIRECT_SEE_OTHER
Constructor Detail |
---|
public HttpClientUtil()
Method Detail |
---|
public static org.apache.commons.httpclient.HttpMethod execute(org.apache.commons.httpclient.HttpClient client, org.apache.commons.httpclient.HttpMethod method, boolean doRedirect) throws org.apache.commons.httpclient.HttpException, IOException
client
- method
- doRedirect
-
IOException
org.apache.commons.httpclient.HttpException
public static org.apache.commons.httpclient.HttpMethod clone(org.apache.commons.httpclient.HttpMethod src, URL url)
src
- url
-
public static String mergePath(String current, String realPath) throws MalformedURLException
current
- realPath
-
MalformedURLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |