public class ApacheConfigurator extends Object implements ClientConfigurator
A ClientConfigurator
implementation that uses the Apache HTTP Connector Provider for the Jersey Client configuration. This enables support for connection pooling in addition to per-client HTTP(S) proxy support.
Note: Use of the ApacheConnectorProvider will buffer requests into memory and can impact memory utilization within your application.
Modifier and Type | Field and Description |
---|---|
protected List<ClientConfigDecorator> |
clientConfigDecorators
The list of
ClientConfigDecorator s to support the ability to decorate ClientConfig |
Constructor and Description |
---|
ApacheConfigurator()
Creates a new
ApacheConfigurator object. |
ApacheConfigurator(List<ClientConfigDecorator> clientConfigDecorators)
Creates a new
ApacheConfigurator and registers the list of provided ClientConfigDecorator s. |
Modifier and Type | Method and Description |
---|---|
void |
customizeBuilder(javax.ws.rs.client.ClientBuilder builder) |
void |
customizeClient(javax.ws.rs.client.Client client) |
protected void |
setConnectorProvider(javax.ws.rs.client.ClientBuilder builder) |
protected final List<ClientConfigDecorator> clientConfigDecorators
The list of ClientConfigDecorator
s to support the ability to decorate ClientConfig
public ApacheConfigurator()
Creates a new ApacheConfigurator
object.
public ApacheConfigurator(List<ClientConfigDecorator> clientConfigDecorators)
Creates a new ApacheConfigurator
and registers the list of provided ClientConfigDecorator
s.
clientConfigDecorators
- the list of client configuration decoratorspublic void customizeBuilder(javax.ws.rs.client.ClientBuilder builder)
customizeBuilder
in interface ClientConfigurator
public void customizeClient(javax.ws.rs.client.Client client)
customizeClient
in interface ClientConfigurator
protected void setConnectorProvider(javax.ws.rs.client.ClientBuilder builder)
Copyright © 2016–2019. All rights reserved.