- All Known Implementing Classes:
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
- Marek Potociar
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.
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).
- asynchronously executed task handle.
getNameString getName()Get name of current connector. Should contain identification of underlying specification and optionally version number. Will be used in User-Agent header.
- name of current connector. Returning
nullor empty string means not including this information in a generated "User-Agent" header.
closevoid close()Close connector and release all it's internally associated resources.