public class CustomHttpClient extends BasicHttpClient
APPLICATION_FORM_URL_ENCODED, BOUNDARY_FIELD, CONTENT_TYPE, FILES_FIELD, MULTIPART_FORM_DATA| Constructor and Description |
|---|
CustomHttpClient() |
CustomHttpClient(org.apache.http.impl.client.CloseableHttpClient httpclient) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
amendRequestHeaders(java.util.Map<java.lang.String,java.lang.Object> headers)
Overridden this method in case you want to handle the headers differently which were passed
from the test-case requests or you need to add any custom headers etc.
|
org.apache.http.impl.client.CloseableHttpClient |
createHttpClient()
This method has been overridden here simply to show how a custom/project-specific http client
can be plugged into the framework.
|
createCharsetResponse, createDefaultRequestBuilder, createFileUploadRequestBuilder, createFormUrlEncodedRequestBuilder, createRequestBuilder, execute, handleHeaders, handleHttpSession, handleRequestBody, handleResponse, handleUrlAndQueryParamspublic CustomHttpClient()
public CustomHttpClient(org.apache.http.impl.client.CloseableHttpClient httpclient)
public org.apache.http.impl.client.CloseableHttpClient createHttpClient()
throws java.security.NoSuchAlgorithmException,
java.security.KeyManagementException,
java.security.KeyStoreException
createHttpClient in class BasicHttpClientjava.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionjava.security.KeyStoreExceptionpublic java.util.Map<java.lang.String,java.lang.Object> amendRequestHeaders(java.util.Map<java.lang.String,java.lang.Object> headers)
amendRequestHeaders in class BasicHttpClientCopyright © 2022. All Rights Reserved.