public final class HTTPEngine3Impl extends Object
Constructor and Description |
---|
HTTPEngine3Impl() |
Modifier and Type | Method and Description |
---|---|
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,
Map<String,String> params) |
static HTTPResponse |
put(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Header[] headers,
Object body) |
public HTTPEngine3Impl()
public static HTTPResponse get(URL url, String username, String password, long timeout, int maxRedirect, String charset, String useragent, ProxyData proxy, Header[] headers) throws IOException
IOException
public static HTTPResponse head(URL url, String username, String password, int timeout, int maxRedirect, String charset, String useragent, ProxyData proxy, Header[] headers) throws IOException
IOException
public static HTTPResponse post(URL url, String username, String password, long timeout, int maxRedirect, String charset, String useragent, ProxyData proxy, Header[] headers, Map<String,String> params) throws IOException
IOException
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
IOException
public static HTTPResponse delete(URL url, String username, String password, int timeout, int maxRedirect, String charset, String useragent, ProxyData proxy, Header[] headers) throws IOException
IOException
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
client
- method
- doRedirect
- IOException
org.apache.commons.httpclient.HttpException
public static Entity getEmptyEntity(String contentType)
public static Entity getByteArrayEntity(byte[] barr, String contentType)
public static Entity getTemporaryStreamEntity(TemporaryStream ts, String contentType)
public static Entity getResourceEntity(Resource res, String contentType)
Copyright © 2015 Lucee