HttpRequest |
HttpRequest.addFileParam(String paramName,
byte[] fileData,
String fileName) |
Add a file parameter for a multi-part request.
|
HttpRequest |
HttpRequest.addHeader(String name,
String value) |
Add request header.
|
HttpRequest |
HttpRequest.addHeaders(Map<String,String> headers) |
Add all the request headers.
|
HttpRequest |
HttpRequest.addParam(String name,
String value) |
Add a name and value request parameters.
|
HttpRequest |
HttpRequest.addParam(String name,
String value,
String contentType) |
Add a name and value request parameters.
|
HttpRequest |
HttpRequest.setAcceptCompress(boolean acceptCompress) |
Specify whether to set the header "Accept-Encoding: gzip, deflate".
|
HttpRequest |
HttpRequest.setBasicAuth(String username,
String password) |
Set BASIC Authorization credentials.
|
HttpRequest |
HttpRequest.setCharacterEncoding(String charset) |
Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8.
|
HttpRequest |
HttpRequest.setCompressMessage(boolean compress) |
Specify whether to GZIP compress the POST or PUT message data.
|
HttpRequest |
HttpRequest.setConnectTimeout(Integer connectTimeout) |
Set the connection timeout in milliseconds.
|
HttpRequest |
HttpRequest.setContentType(String contentType) |
Set the 'Content-Type' header.
|
HttpRequest |
HttpRequest.setContext(org.apache.http.client.protocol.HttpClientContext context) |
Sets the HttpClientContext
The context stores details about the call to a server.
|
HttpRequest |
HttpRequest.setMessage(String message) |
Set the POST or PUT message body.
|
HttpRequest |
HttpRequest.setMessageData(byte[] messageData) |
Set the POST or PUT message body.
|
HttpRequest |
HttpRequest.setNtlmAuth(String username,
String password,
String workstation,
String domain) |
Set NTLM Authorization credentials.
|
HttpRequest |
HttpRequest.setParams(Map<String,String> params) |
Set the request form parameters.
|
HttpRequest |
HttpRequest.setProxy(String proxyHost,
int proxyPort) |
Set Proxy host and port.
|
HttpRequest |
HttpRequest.setProxyAuth(String username,
String password) |
Set Proxy Authorization credentials.
|
HttpRequest |
HttpRequest.setReadLimit(int readLimit) |
Set the response content read limit in bytes.
|
HttpRequest |
HttpRequest.setSocketFactory(org.apache.http.conn.socket.LayeredConnectionSocketFactory socketFactory) |
Set an optional ConnectionSocketFactory to enable creating layered sockets such as TLS.
|
HttpRequest |
HttpRequest.setSocketTimeout(Integer socketTimeout) |
Set the socket timeout in milliseconds.
|
HttpRequest |
HttpRequest.setTimeouts(int connectTimeout,
int socketTimeout) |
Set the connect and socket timeouts in milliseconds.
|
HttpRequest |
HttpRequest.setUserAgent(String userAgent) |
Set the 'User-Agent' header.
|
HttpRequest |
HttpRequest.setUseSystemProxy(boolean useSysProxy) |
Specify whether to use proxy in system properties.
|