Class AsynchronousInvoke
- All Implemented Interfaces:
AsyncInvoker
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete()Invoke HTTP DELETE method for the current request asynchronously.<T> Future<T>delete(InvocationCallback<T> callback) Invoke HTTP DELETE method for the current request asynchronously.<T> Future<T>delete(GenericType<T> responseType) Invoke HTTP DELETE method for the current request asynchronously.<T> Future<T>Invoke HTTP DELETE method for the current request asynchronously.get()Invoke HTTP GET method for the current request asynchronously.<T> Future<T>get(InvocationCallback<T> callback) Invoke HTTP GET method for the current request asynchronously.<T> Future<T>get(GenericType<T> responseType) Invoke HTTP GET method for the current request asynchronously.<T> Future<T>Invoke HTTP GET method for the current request asynchronously.head()Invoke HTTP HEAD method for the current request asynchronously.head(InvocationCallback<Response> callback) Invoke HTTP HEAD method for the current request asynchronously.Invoke an arbitrary method for the current request asynchronously.Invoke an arbitrary method for the current request asynchronously.<T> Future<T>method(String name, Entity<?> entity, InvocationCallback<T> callback) Invoke an arbitrary method for the current request asynchronously.<T> Future<T>method(String name, Entity<?> entity, GenericType<T> responseType) Invoke an arbitrary method for the current request asynchronously.<T> Future<T>Invoke an arbitrary method for the current request asynchronously.<T> Future<T>method(String name, InvocationCallback<T> callback) Invoke an arbitrary method for the current request asynchronously.<T> Future<T>method(String name, GenericType<T> responseType) Invoke an arbitrary method for the current request asynchronously.<T> Future<T>Invoke an arbitrary method for the current request asynchronously.options()Invoke HTTP OPTIONS method for the current request asynchronously.<T> Future<T>options(InvocationCallback<T> callback) Invoke HTTP OPTIONS method for the current request asynchronously.<T> Future<T>options(GenericType<T> responseType) Invoke HTTP OPTIONS method for the current request asynchronously.<T> Future<T>Invoke HTTP OPTIONS method for the current request asynchronously.<T> Future<T>patch(Entity<?> entity, InvocationCallback<T> callback) <T> Future<T>patch(Entity<?> entity, GenericType<T> responseType) <T> Future<T>Invoke HTTP POST method for the current request asynchronously.<T> Future<T>post(Entity<?> entity, InvocationCallback<T> callback) Invoke HTTP POST method for the current request asynchronously.<T> Future<T>post(Entity<?> entity, GenericType<T> responseType) Invoke HTTP POST method for the current request asynchronously.<T> Future<T>Invoke HTTP POST method for the current request asynchronously.Invoke HTTP PUT method for the current request asynchronously.<T> Future<T>put(Entity<?> entity, InvocationCallback<T> callback) Invoke HTTP PUT method for the current request asynchronously.<T> Future<T>put(Entity<?> entity, GenericType<T> responseType) Invoke HTTP PUT method for the current request asynchronously.<T> Future<T>Invoke HTTP PUT method for the current request asynchronously.trace()Invoke HTTP TRACE method for the current request asynchronously.<T> Future<T>trace(InvocationCallback<T> callback) Invoke HTTP TRACE method for the current request asynchronously.<T> Future<T>trace(GenericType<T> responseType) Invoke HTTP TRACE method for the current request asynchronously.<T> Future<T>Invoke HTTP TRACE method for the current request asynchronously.
-
Field Details
-
invocation
-
-
Constructor Details
-
AsynchronousInvoke
-
-
Method Details
-
get
Description copied from interface:AsyncInvokerInvoke HTTP GET method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. Note that in case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
getin interfaceAsyncInvoker- Returns:
- invocation response
future.
-
get
Description copied from interface:AsyncInvokerInvoke HTTP GET method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
getin interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
get
Description copied from interface:AsyncInvokerInvoke HTTP GET method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
getin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
get
Description copied from interface:AsyncInvokerInvoke HTTP GET method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
getin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
trace
Description copied from interface:AsyncInvokerInvoke HTTP TRACE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
tracein interfaceAsyncInvoker- Returns:
- invocation response
future.
-
trace
Description copied from interface:AsyncInvokerInvoke HTTP TRACE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
tracein interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
trace
Description copied from interface:AsyncInvokerInvoke HTTP TRACE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
tracein interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
trace
Description copied from interface:AsyncInvokerInvoke HTTP TRACE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
tracein interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
put
Description copied from interface:AsyncInvokerInvoke HTTP PUT method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
putin interfaceAsyncInvoker- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.- Returns:
- invocation response
future.
-
put
Description copied from interface:AsyncInvokerInvoke HTTP PUT method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
putin interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
put
Description copied from interface:AsyncInvokerInvoke HTTP PUT method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
putin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
put
Description copied from interface:AsyncInvokerInvoke HTTP PUT method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
putin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
post
Description copied from interface:AsyncInvokerInvoke HTTP POST method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
postin interfaceAsyncInvoker- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.- Returns:
- invocation response
future.
-
post
Description copied from interface:AsyncInvokerInvoke HTTP POST method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
postin interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
post
Description copied from interface:AsyncInvokerInvoke HTTP POST method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
postin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
post
Description copied from interface:AsyncInvokerInvoke HTTP POST method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
postin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
delete
Description copied from interface:AsyncInvokerInvoke HTTP DELETE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
deletein interfaceAsyncInvoker- Returns:
- invocation response
future.
-
delete
Description copied from interface:AsyncInvokerInvoke HTTP DELETE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
deletein interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
delete
Description copied from interface:AsyncInvokerInvoke HTTP DELETE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
deletein interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
delete
Description copied from interface:AsyncInvokerInvoke HTTP DELETE method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
deletein interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
head
Description copied from interface:AsyncInvokerInvoke HTTP HEAD method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
headin interfaceAsyncInvoker- Returns:
- invocation response
future.
-
head
Description copied from interface:AsyncInvokerInvoke HTTP HEAD method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
headin interfaceAsyncInvoker- Parameters:
callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
options
Description copied from interface:AsyncInvokerInvoke HTTP OPTIONS method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
optionsin interfaceAsyncInvoker- Returns:
- invocation response
future.
-
options
Description copied from interface:AsyncInvokerInvoke HTTP OPTIONS method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
optionsin interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
options
Description copied from interface:AsyncInvokerInvoke HTTP OPTIONS method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
optionsin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
options
Description copied from interface:AsyncInvokerInvoke HTTP OPTIONS method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
optionsin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Parameters:
name- method name.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
name- method name.responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
name- method name.responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
name- method name.callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps aProcessingExceptionthrown in case of an invocation processing failure. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Parameters:
name- method name.entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Type Parameters:
T- response entity type.- Parameters:
name- method name.entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.responseType- Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the specified response type is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
name- method name.entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.responseType- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response
future.
-
method
Description copied from interface:AsyncInvokerInvoke an arbitrary method for the current request asynchronously.Note that calling the
Future.get()method on the returnedFutureinstance may throw anExecutionExceptionthat wraps either aProcessingExceptionthrown in case of an invocation processing failure or aWebApplicationExceptionor one of its subclasses thrown in case the received response status code is notsuccessfuland the generic type of the supplied response callback is notResponse. In case a processing of a properly received response fails, the wrapped processing exception will be ofResponseProcessingExceptiontype and will contain theResponseinstance whose processing has failed.- Specified by:
methodin interfaceAsyncInvoker- Type Parameters:
T- generic response entity type.- Parameters:
name- method name.entity- request entity, including it's fullVariantinformation. Any variant-related HTTP headers previously set (namelyContent-Type,Content-LanguageandContent-Encoding) will be overwritten using the entity variant information.callback- asynchronous invocation callback.- Returns:
- invocation response
future.
-
patch
-
patch
-
patch
-
patch
-