Connector provider for Jersey {@link Connector connectors} that utilizeGrizzly Asynchronous HTTP Client to send and receive HTTP request and responses.
The following connector configuration properties are supported:
- {@link org.glassfish.jersey.client.ClientProperties#CONNECT_TIMEOUT}
- {@link org.glassfish.jersey.client.ClientProperties#READ_TIMEOUT}
- {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}- default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}
- {@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}
- {@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}
- {@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}
Connector instances created via this connector provider use {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED chunked encoding} as a default setting.This can be overridden by the {@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}.
If a {@link org.glassfish.jersey.client.ClientResponse} is obtained and an entity is not read from the response then{@link org.glassfish.jersey.client.ClientResponse#close()} MUST be called after processing the response to releaseconnection-based resources.
If a response entity is obtained that is an instance of {@link java.io.Closeable} then the instance MUSTbe closed after processing the entity to release connection-based resources.
The following methods are currently supported: HEAD, GET, POST, PUT, DELETE, OPTIONS, PATCH and TRACE.
@author Marek Potociar (marek.potociar at oracle.com)
@since 2.5