|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Connector
Client transport connector contract.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
ClientResponse apply(ClientRequest request)
throws javax.ws.rs.ProcessingException
apply in interface Inflector<ClientRequest,ClientResponse>request - Jersey client request to be sent.
javax.ws.rs.ProcessingException - in case of any invocation failure.
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).
String getName()
null or empty string means not including
this information in a generated "User-Agent" header.void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||