public class HTTPEngine extends Object
Modifier and Type | Field and Description |
---|---|
static short |
ACTION_GET
Field
ACTION_GET |
static short |
ACTION_POST
Field
ACTION_POST |
static int |
MAX_REDIRECT |
static int |
STATUS_OK
Field
STATUS_OK |
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 and Description |
---|
HTTPEngine() |
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 HTTPResponse |
get(URL url) |
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) |
static HTTPResponse |
post(URL url,
String username,
String password,
long timeout,
int maxRedirect,
String charset,
String useragent,
ProxyData proxy,
Map<String,String> headers,
Map<String,String> params) |
static HTTPResponse |
put(URL url,
String username,
String password,
int timeout,
int maxRedirect,
String mimetype,
String charset,
String useragent,
ProxyData proxy,
Header[] headers,
Object body) |
public static final short ACTION_POST
ACTION_POST
public static final short ACTION_GET
ACTION_GET
public static final int STATUS_OK
STATUS_OK
public static final int 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
public HTTPEngine()
public static HTTPResponse get(URL url) throws IOException
IOException
public static HTTPResponse post(URL url) throws IOException
IOException
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 post(URL url, String username, String password, long timeout, int maxRedirect, String charset, String useragent, ProxyData proxy, Map<String,String> headers, Map<String,String> params) 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 put(URL url, String username, String password, int timeout, int maxRedirect, String mimetype, 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 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