public class HttpClientRequestExecutor extends Object implements RequestExecutor
RequestExecutor implementation that uses the
Apache HttpClient implementation to
execute http requests.| Constructor and Description |
|---|
HttpClientRequestExecutor(HttpClientConfiguration clientConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Response |
executeRequest(Request request) |
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
protected byte[] |
toBytes(org.apache.http.HttpEntity entity) |
protected Response |
toSdkResponse(org.apache.http.HttpResponse httpResponse) |
public HttpClientRequestExecutor(HttpClientConfiguration clientConfiguration)
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
public Response executeRequest(Request request) throws HttpException
executeRequest in interface RequestExecutorHttpExceptionprotected byte[] toBytes(org.apache.http.HttpEntity entity)
throws IOException
IOExceptionprotected Response toSdkResponse(org.apache.http.HttpResponse httpResponse) throws IOException
IOExceptionCopyright © 2018–2019 Okta. All rights reserved.