public class HttpClientRequestFactory extends Object implements NonMarshallingRequestFactory<HttpClientRequest<?,?>>
RequestFactory instead.| Constructor and Description |
|---|
HttpClientRequestFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.protocol.HttpClientContext |
createClientContext(ProxyConfig proxyConfig) |
protected org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(ProxyConfig proxyConfig) |
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(ProxyConfig proxyConfig) |
boolean |
supportsHeader()
Indicates whether the requests can support headers
|
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(ProxyConfig proxyConfig)
protected org.apache.http.client.protocol.HttpClientContext createClientContext(ProxyConfig proxyConfig)
public boolean supportsHeader()
RequestFactorysupportsHeader in interface RequestFactory<HttpClientRequest<?,?>>Request.setHeader(String, String),
Request.addHeader(String, String)protected org.apache.http.conn.routing.HttpRoutePlanner getRoutePlanner(ProxyConfig proxyConfig)
protected org.apache.http.protocol.HttpRequestExecutor getRequestExecutor()
protected org.apache.http.conn.HttpClientConnectionManager getConnectionManager()
Copyright © 2015 Atlassian. All rights reserved.