public class JdkConnector extends Object implements Connector
Constructor and Description |
---|
JdkConnector(Client client,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
ClientResponse |
apply(ClientRequest request)
Synchronously process client request into a response.
|
Future<?> |
apply(ClientRequest request,
AsyncConnectorCallback callback)
Asynchronously process client request into a response.
|
void |
close()
Close connector and release all it's internally associated resources.
|
String |
getName()
Get name of current connector.
|
public JdkConnector(Client client, Configuration config)
public ClientResponse apply(ClientRequest request)
Connector
apply
in interface Connector
apply
in interface Inflector<ClientRequest,ClientResponse>
request
- Jersey client request to be sent.public Future<?> apply(ClientRequest request, AsyncConnectorCallback callback)
Connector
public String getName()
Connector
getName
in interface Connector
null
or empty string means not including
this information in a generated "User-Agent" header.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.