Uses of Class
com.avoka.tm.http.HttpRequest
Package
Description
Provides HTTP Client classes using underlying Apache HTTP Components library.
Provides Service classes.
Provides Unit Testing support classes.
-
Uses of HttpRequest in com.avoka.tm.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 PATCH 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 TypeMethodDescriptionHttpRequest.addFileParam
(String paramName, byte[] fileData, String fileName) Add a file parameter for a multi-part request.Add request header.HttpRequest.addHeaders
(Map<String, String> headers) Add all the request headers.Add a name and value request parameters.Add a name and value request parameters.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.setCharacterEncoding
(String charset) Sets the character encoding (MIME charset) of the response being sent to the client, for example, to UTF-8.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.setHttpEntity
(org.apache.http.HttpEntity httpEntity) Set the httpEntity parameterHttpRequest.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.Set Proxy host and port.HttpRequest.setProxyAuth
(String username, String password) Set Proxy Authorization credentials.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.HttpRequest.setUseSystemProxy
(boolean useSysProxy) Specify whether to use proxy in system properties. -
Uses of HttpRequest in com.avoka.tm.svc
Modifier and TypeMethodDescriptionRestCallSvc.buildRequest
(RestCFG restCFG) Return a new HttpRequest object based the RestCFG object config.RestCallSvc.buildRequest
(RestCFG restCFG, Map<String, Object> modelMap) Return a new HttpRequest object based the RestCFG object config.RestCallSvc.buildRequestBasedJson
(String jsonCFG) Return a new HttpRequest object based the Json config.RestCallSvc.buildRequestBasedJson
(String jsonCFG, Map<String, Object> modelMap) Return a new HttpRequest object based the Json config. -
Uses of HttpRequest in com.avoka.tm.test
Modifier and TypeMethodDescriptionstatic HttpResponse
MockRegister.getHttpResponse
(HttpRequest request) Return the HttpResponse registered for the given request, if any.MockRegister.when
(HttpRequest request) Set the mock test context request registry key (the HttpRequest).