railo.commons.net.http.httpclient3
Class HTTPEngine3Impl
java.lang.Object
railo.commons.net.http.httpclient3.HTTPEngine3Impl
public final class HTTPEngine3Impl
- extends Object
Method Summary |
static HTTPResponse |
delete(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
|
static org.apache.commons.httpclient.HttpMethod |
execute(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
int maxRedirect)
Execute a HTTTP Client and follow redirect over different hosts |
static HTTPResponse |
get(URL url,
String username,
String password,
long timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
|
static Entity |
getByteArrayEntity(byte[] barr,
String contentType)
|
static Entity |
getEmptyEntity(String contentType)
|
static Entity |
getResourceEntity(Resource res,
String contentType)
|
static Entity |
getTemporaryStreamEntity(TemporaryStream ts,
String contentType)
|
static HTTPResponse |
head(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
|
static Header |
header(String name,
String value)
|
static HTTPResponse |
post(URL url,
String username,
String password,
long timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
|
static HTTPResponse |
put(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers,
Object body)
|
HTTPEngine3Impl
public HTTPEngine3Impl()
get
public static HTTPResponse get(URL url,
String username,
String password,
long timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
throws IOException
- Throws:
IOException
head
public static HTTPResponse head(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
throws IOException
- Throws:
IOException
post
public static HTTPResponse post(URL url,
String username,
String password,
long timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
throws IOException
- Throws:
IOException
put
public static HTTPResponse put(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers,
Object body)
throws IOException
- Throws:
IOException
delete
public static HTTPResponse delete(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers)
throws IOException
- Throws:
IOException
execute
public static org.apache.commons.httpclient.HttpMethod execute(org.apache.commons.httpclient.HttpClient client,
org.apache.commons.httpclient.HttpMethod method,
int maxRedirect)
throws org.apache.commons.httpclient.HttpException,
IOException
- Execute a HTTTP Client and follow redirect over different hosts
- Parameters:
client
- method
- doRedirect
-
- Returns:
-
- Throws:
IOException
org.apache.commons.httpclient.HttpException
header
public static Header header(String name,
String value)
getEmptyEntity
public static Entity getEmptyEntity(String contentType)
getByteArrayEntity
public static Entity getByteArrayEntity(byte[] barr,
String contentType)
getTemporaryStreamEntity
public static Entity getTemporaryStreamEntity(TemporaryStream ts,
String contentType)
getResourceEntity
public static Entity getResourceEntity(Resource res,
String contentType)
Copyright © 2012 Railo