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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioninvoke()<T> Tinvoke(GenericType<T> responseType) <T> Tsubmit()<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 anInvocationCallbackto process the future result of the invocation.<T> Future<T>toString()
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocation- Throws:
ProcessingExceptionWebApplicationException
-
invoke
- Specified by:
invokein interfaceInvocation- Throws:
ProcessingExceptionWebApplicationException
-
invoke
public <T> T invoke(GenericType<T> responseType) throws ProcessingException, WebApplicationException - Specified by:
invokein interfaceInvocation- Throws:
ProcessingExceptionWebApplicationException
-
submit
- Specified by:
submitin interfaceInvocation
-
submit
- Specified by:
submitin interfaceInvocation
-
submit
- Specified by:
submitin interfaceInvocation
-
submit
- Specified by:
submitin interfaceInvocation
-
submit
Submit the request for an asynchronous invocation and register anInvocationCallbackto process the future result of the invocation.Response type in this case is taken from
responseTypeparam (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:
propertyin interfaceInvocation
-
toString
-