Uses of Class
com.avoka.component.http.HttpRequest
Package
Description
Provides a Fluent HTTP client library using Apache HTTP Components.
-
Uses of HttpRequest in com.avoka.component.http
Modifier and TypeClassDescriptionclass
Provides a DELETE Request class for performing simple HTTP request operations.class
Provides a GET Request class for performing simple HTTP request operations.class
Provides a POST Request class for performing simple HTTP request operations.class
Provides a PUT Request class for performing simple HTTP request operations.Modifier and TypeMethodDescriptionAdd request header.HttpRequest.addHeadersAll
(Map<String, Object> headers) Add all the request headers.HttpRequest.setAcceptCompress
(boolean acceptCompress) Specify whether to set the header "Accept-Encoding: gzip, deflate".HttpRequest.setBasicAuth
(String username, String password) Set BASIC Authorization credentials.HttpRequest.setCompressMessage
(boolean compress) Specify whether to GZIP compress the POST or PUT message data.HttpRequest.setConnectTimeout
(Integer connectTimeout) Set the connection timeout in milliseconds.HttpRequest.setContentType
(String contentType) Set the 'Content-Type' header.HttpRequest.setContext
(org.apache.http.client.protocol.HttpClientContext context) Sets the HttpClientContext The context stores details about the call to a server.HttpRequest.setMessage
(String message) Set the POST or PUT message body.HttpRequest.setMessageData
(byte[] messageData) Set the POST or PUT message body.HttpRequest.setNtlmAuth
(String username, String password, String workstation, String domain) Set NTLM Authorization credentials.Set the request form parameters.HttpRequest.setReadLimit
(int readLimit) Set the response content read limit in bytes.HttpRequest.setSocketFactory
(org.apache.http.conn.socket.LayeredConnectionSocketFactory socketFactory) Set an optional ConnectionSocketFactory to enable creating layered sockets such as TLS.HttpRequest.setSocketTimeout
(Integer socketTimeout) Set the socket timeout in milliseconds.HttpRequest.setTimeouts
(int connectTimeout, int socketTimeout) Set the connect and socket timeouts in milliseconds.HttpRequest.setUserAgent
(String userAgent) Set the 'User-Agent' header.