Package org.glassfish.jersey.client
Class JerseyInvocation
java.lang.Object
org.glassfish.jersey.client.JerseyInvocation
- All Implemented Interfaces:
Invocation
Jersey implementation of
JAX-RS client-side
request invocation
contract.- Author:
- Marek Potociar
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptioninvoke()
<T> T
invoke
(GenericType<T> responseType) <T> T
submit()
<T> Future<T>
submit
(InvocationCallback<T> callback) <T> Future<T>
submit
(GenericType<T> responseType) <T> Future<T>
submit
(GenericType<T> responseType, InvocationCallback<T> callback) Submit the request for an asynchronous invocation and register anInvocationCallback
to process the future result of the invocation.<T> Future<T>
toString()
-
Method Details
-
invoke
- Specified by:
invoke
in interfaceInvocation
- Throws:
ProcessingException
WebApplicationException
-
invoke
- Specified by:
invoke
in interfaceInvocation
- Throws:
ProcessingException
WebApplicationException
-
invoke
public <T> T invoke(GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
invoke
in interfaceInvocation
- Throws:
ProcessingException
WebApplicationException
-
submit
- Specified by:
submit
in interfaceInvocation
-
submit
- Specified by:
submit
in interfaceInvocation
-
submit
- Specified by:
submit
in interfaceInvocation
-
submit
- Specified by:
submit
in interfaceInvocation
-
submit
Submit the request for an asynchronous invocation and register anInvocationCallback
to process the future result of the invocation.Response type in this case is taken from
responseType
param (if notnull
) rather than fromcallback
. This allows to pass callbacks likenew InvocationCallback<>() {...}
.- Type Parameters:
T
- response type- Parameters:
responseType
- response type that is used instead of obtaining types fromcallback
.callback
- invocation callback for asynchronous processing of the request invocation result.- Returns:
- future response object of the specified type as a result of the request invocation.
-
property
- Specified by:
property
in interfaceInvocation
-
toString
-