Class JdkConnector
java.lang.Object
org.glassfish.jersey.jdk.connector.internal.JdkConnector
- All Implemented Interfaces:
Connector,Inflector<ClientRequest,ClientResponse>
- Author:
- Petr Janouch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ClientRequest request) Synchronously process client request into a response.Future<?>apply(ClientRequest request, AsyncConnectorCallback callback) Asynchronously process client request into a response.voidclose()Close connector and release all it's internally associated resources.getName()Get name of current connector.
-
Constructor Details
-
JdkConnector
-
-
Method Details
-
apply
Description copied from interface:ConnectorSynchronously process client request into a response. The method is used by Jersey client runtime to synchronously send a request and receive a response.- Specified by:
applyin interfaceConnector- Specified by:
applyin interfaceInflector<ClientRequest,ClientResponse> - Parameters:
request- Jersey client request to be sent.- Returns:
- Jersey client response received for the client request.
-
apply
Description copied from interface:ConnectorAsynchronously process client request into a response. The method is used by Jersey client runtime to asynchronously send a request and receive a response. -
getName
Description copied from interface:ConnectorGet name of current connector. Should contain identification of underlying specification and optionally version number. Will be used in User-Agent header.- Specified by:
getNamein interfaceConnector- Returns:
- name of current connector. Returning
nullor empty string means not including this information in a generated "User-Agent" header.
-
close
public void close()Description copied from interface:ConnectorClose connector and release all it's internally associated resources.
-