public class JestClientFactory extends Object
Constructor and Description |
---|
JestClientFactory() |
Modifier and Type | Method and Description |
---|---|
protected HttpClientBuilder |
configureHttpClient(HttpClientBuilder builder)
Extension point
Example:
|
protected HttpClientConnectionManager |
createConnectionManager() |
protected RequestConfig |
createRequestConfig() |
JestClient |
getObject() |
Class<?> |
getObjectType() |
protected HttpRoutePlanner |
getRoutePlanner() |
boolean |
isSingleton() |
void |
setHttpClientConfig(HttpClientConfig httpClientConfig) |
public JestClient getObject()
protected HttpClientBuilder configureHttpClient(HttpClientBuilder builder)
final JestClientFactory factory = new JestClientFactory() { @Override protected HttpClientBuilder configureHttpClient(HttpClientBuilder builder) { return builder.setDefaultHeaders(...); } }
builder
- protected HttpRoutePlanner getRoutePlanner()
protected RequestConfig createRequestConfig()
protected HttpClientConnectionManager createConnectionManager()
public Class<?> getObjectType()
public boolean isSingleton()
public void setHttpClientConfig(HttpClientConfig httpClientConfig)
Copyright © 2014. All rights reserved.