HttpRequest |
HttpRequest.addFileParam(java.lang.String paramName,
byte[] fileData,
java.lang.String fileName) |
Add a file parameter for a multi-part request.
|
HttpRequest |
HttpRequest.addHeader(java.lang.String name,
java.lang.String value) |
Add request header.
|
HttpRequest |
HttpRequest.addHeaders(java.util.Map<java.lang.String,java.lang.String> headers) |
Add all the request headers.
|
HttpRequest |
HttpRequest.addParam(java.lang.String name,
java.lang.String value) |
Add a name and value request parameters.
|
HttpRequest |
HttpRequest.addParam(java.lang.String name,
java.lang.String value,
java.lang.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(java.lang.String username,
java.lang.String password) |
Set BASIC Authorization credentials.
|
HttpRequest |
HttpRequest.setCharacterEncoding(java.lang.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(java.lang.Integer connectTimeout) |
Set the connection timeout in milliseconds.
|
HttpRequest |
HttpRequest.setContentType(java.lang.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(java.lang.String message) |
Set the POST or PUT message body.
|
HttpRequest |
HttpRequest.setMessageData(byte[] messageData) |
Set the POST or PUT message body.
|
HttpRequest |
HttpRequest.setNtlmAuth(java.lang.String username,
java.lang.String password,
java.lang.String workstation,
java.lang.String domain) |
Set NTLM Authorization credentials.
|
HttpRequest |
HttpRequest.setParams(java.util.Map<java.lang.String,java.lang.String> params) |
Set the request form parameters.
|
HttpRequest |
HttpRequest.setProxy(java.lang.String proxyHost,
int proxyPort) |
Set Proxy host and port.
|
HttpRequest |
HttpRequest.setProxyAuth(java.lang.String username,
java.lang.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(java.lang.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(java.lang.String userAgent) |
Set the 'User-Agent' header.
|
HttpRequest |
HttpRequest.setUseSystemProxy(boolean useSysProxy) |
Specify whether to use proxy in system properties.
|