Default client transport connector using
- Marek Potociar
Method SummaryModifier and TypeMethodDescriptionSynchronously process client request into a response.
Future<?>Asynchronously process client request into a response.
close()Close connector and release all it's internally associated resources.
getName()Get name of current connector.
protected voidSecure connection if necessary.
(Client client, HttpUrlConnectorProvider.ConnectionFactory connectionFactory, int chunkSize, boolean fixLengthStreaming, boolean setMethodWorkaround)Create new
client- JAX-RS client instance for which the connector is being created.
HttpsURLConnectionfactory to be used when creating connections.
chunkSize- chunk size to use when using HTTP chunked transfer coding.
fixLengthStreaming- specify if the the
fixed-length streaming modeon the underlying HTTP URL connection instances should be used when sending requests.
setMethodWorkaround- specify if the reflection workaround should be used to set HTTP URL connection method name. See
applySynchronously process client request into a response. The method is used by Jersey client runtime to synchronously send a request and receive a response.
applyAsynchronously process client request into a response. The method is used by Jersey client runtime to asynchronously send a request and receive a response.
closepublic void close()Close connector and release all it's internally associated resources.
secureConnectionSecure connection if necessary. Provided implementation sets
SSLSocketFactoryto give connection, if that is an instance of
client- client associated with this client runtime.
uc- http connection to be secured.
getNamepublic String getName()Get name of current connector. Should contain identification of underlying specification and optionally version number. Will be used in User-Agent header.