public interface Connector extends Inflector<ClientRequest,ClientResponse>
Note that unlike most of the other
Jersey SPI extension contracts,
Connector is not a typical runtime extension and as such cannot be directly registered
using a configuration
register(...) method. Jersey client runtime retrieves a
instance upon Jersey client runtime initialization using a
|Modifier and Type||Method and Description|
Synchronously process client request into a response.
Asynchronously process client request into a response.
Close connector and release all it's internally associated resources.
Get name of current connector.
ClientResponse apply(ClientRequest request)
Future<?> apply(ClientRequest request, AsyncConnectorCallback callback)
request- Jersey client request to be sent.
callback- Jersey asynchronous connector callback to asynchronously receive the request processing result (either a response or a failure).
nullor empty string means not including this information in a generated "User-Agent" header.
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.