public class HttpClientRequestFactory extends Object implements NonMarshallingRequestFactory<HttpClientRequest<?,?>>
RequestFactory instead.| Constructor and Description |
|---|
HttpClientRequestFactory() |
HttpClientRequestFactory(ProxyConfig proxyConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.protocol.HttpClientContext |
createClientContext() |
protected org.apache.http.client.protocol.HttpClientContext |
createClientContext(boolean requiresAuthentication) |
protected org.apache.http.impl.client.CloseableHttpClient |
createHttpClient() |
HttpClientRequest |
createRequest(Request.MethodType methodType,
String url)
Creates a request of given
Request.MethodType to given url |
protected org.apache.http.conn.HttpClientConnectionManager |
getConnectionManager() |
protected org.apache.http.protocol.HttpRequestExecutor |
getRequestExecutor()
We can override the to override the request execution behaviour.
|
protected org.apache.http.conn.routing.HttpRoutePlanner |
getRoutePlanner() |
boolean |
supportsHeader()
Indicates whether the requests can support headers
|
public HttpClientRequestFactory()
public HttpClientRequestFactory(ProxyConfig proxyConfig)
public HttpClientRequest createRequest(Request.MethodType methodType, String url)
RequestFactoryRequest.MethodType to given urlcreateRequest in interface RequestFactory<HttpClientRequest<?,?>>methodType - The HTTP method typeurl - The url to requestprotected org.apache.http.impl.client.CloseableHttpClient createHttpClient()
protected org.apache.http.client.protocol.HttpClientContext createClientContext()
protected org.apache.http.client.protocol.HttpClientContext createClientContext(boolean requiresAuthentication)
public boolean supportsHeader()
RequestFactorysupportsHeader in interface RequestFactory<HttpClientRequest<?,?>>Request.setHeader(String, String),
Request.addHeader(String, String)protected org.apache.http.conn.routing.HttpRoutePlanner getRoutePlanner()
protected org.apache.http.protocol.HttpRequestExecutor getRequestExecutor()
protected org.apache.http.conn.HttpClientConnectionManager getConnectionManager()
Copyright © 2019 Atlassian. All rights reserved.