public class JerseyCompletionStageRxInvoker extends Object implements CompletionStageRxInvoker
CompletionStage.
This class allows for using InvocationCallback in
Invocation.Builder.rx(JerseyCompletionStageRxInvoker.class)
requests.| Modifier and Type | Method and Description |
|---|---|
T |
delete() |
<R> T |
delete(Class<R> responseType) |
<R> T |
delete(GenericType<R> responseType) |
<R> CompletableFuture<R> |
delete(InvocationCallback<R> callback)
Invoke HTTP DELETE method for the current request asynchronously.
|
T |
get() |
<R> T |
get(Class<R> responseType) |
<R> T |
get(GenericType<R> responseType) |
<R> CompletableFuture<R> |
get(InvocationCallback<R> callback)
Invoke HTTP GET method for the current request asynchronously.
|
T |
head() |
CompletableFuture<Response> |
head(InvocationCallback<Response> callback)
Invoke HTTP HEAD method for the current request asynchronously.
|
CompletableFuture<Response> |
method(String name)
Invoke an arbitrary method for the current request asynchronously.
|
<T> CompletableFuture<T> |
method(String name,
Class<T> responseType)
Invoke an arbitrary method for the current request asynchronously.
|
CompletableFuture<Response> |
method(String name,
Entity<?> entity)
Invoke an arbitrary method for the current request asynchronously.
|
<T> CompletableFuture<T> |
method(String name,
Entity<?> entity,
Class<T> responseType)
Invoke an arbitrary method for the current request asynchronously.
|
<T> CompletableFuture<T> |
method(String name,
Entity<?> entity,
GenericType<T> responseType)
Invoke an arbitrary method for the current request asynchronously.
|
<T> CompletableFuture<T> |
method(String name,
Entity<?> entity,
InvocationCallback<T> callback)
Invoke an arbitrary method for the current request asynchronously.
|
<T> CompletableFuture<T> |
method(String name,
GenericType<T> responseType)
Invoke an arbitrary method for the current request asynchronously.
|
<T> CompletableFuture<T> |
method(String name,
InvocationCallback<T> callback)
Invoke an arbitrary method for the current request asynchronously.
|
T |
options() |
<R> T |
options(Class<R> responseType) |
<R> T |
options(GenericType<R> responseType) |
<R> CompletableFuture<R> |
options(InvocationCallback<R> callback)
Invoke HTTP OPTIONS method for the current request asynchronously.
|
T |
post(Entity<?> entity) |
<R> T |
post(Entity<?> entity,
Class<R> clazz) |
<R> T |
post(Entity<?> entity,
GenericType<R> type) |
<R> CompletableFuture<R> |
post(Entity<?> entity,
InvocationCallback<R> callback)
Invoke HTTP POST method for the current request asynchronously.
|
T |
put(Entity<?> entity) |
<R> T |
put(Entity<?> entity,
Class<R> clazz) |
<R> T |
put(Entity<?> entity,
GenericType<R> type) |
<R> CompletableFuture<R> |
put(Entity<?> entity,
InvocationCallback<R> callback)
Invoke HTTP PUT method for the current request asynchronously.
|
T |
trace() |
<R> T |
trace(Class<R> responseType) |
<R> T |
trace(GenericType<R> responseType) |
<R> CompletableFuture<R> |
trace(InvocationCallback<R> callback)
Invoke HTTP TRACE method for the current request asynchronously.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic CompletableFuture<Response> method(String name)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps a ProcessingException thrown in case of an invocation processing
failure.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokername - method name.future.public <T> CompletableFuture<T> method(String name, Class<T> responseType)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the specified response type is not Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokerT - response entity type.name - method name.responseType - Java type the response entity will be converted to.future.public <T> CompletableFuture<T> method(String name, GenericType<T> responseType)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the specified response type is not Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokerT - generic response entity type.name - method name.responseType - representation of a generic Java type the response
entity will be converted to.future.public <T> CompletableFuture<T> method(String name, InvocationCallback<T> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokerT - generic response entity type.name - method name.callback - asynchronous invocation callback.future.public CompletableFuture<Response> method(String name, Entity<?> entity)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps a ProcessingException thrown in case of an invocation processing
failure.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokername - method name.entity - request entity, including it's full Variant information.
Any variant-related HTTP headers previously set (namely Content-Type,
Content-Language and Content-Encoding) will be overwritten using
the entity variant information.future.public <T> CompletableFuture<T> method(String name, Entity<?> entity, Class<T> responseType)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the specified response type is not Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokerT - response entity type.name - method name.entity - request entity, including it's full Variant information.
Any variant-related HTTP headers previously set (namely Content-Type,
Content-Language and Content-Encoding) will be overwritten using
the entity variant information.responseType - Java type the response entity will be converted to.future.public <T> CompletableFuture<T> method(String name, Entity<?> entity, GenericType<T> responseType)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the specified response type is not Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokerT - generic response entity type.name - method name.entity - request entity, including it's full Variant information.
Any variant-related HTTP headers previously set (namely Content-Type,
Content-Language and Content-Encoding) will be overwritten using
the entity variant information.responseType - representation of a generic Java type the response
entity will be converted to.future.public <T> CompletableFuture<T> method(String name, Entity<?> entity, InvocationCallback<T> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
method in interface AsyncInvokerT - generic response entity type.name - method name.entity - request entity, including it's full Variant information.
Any variant-related HTTP headers previously set (namely Content-Type,
Content-Language and Content-Encoding) will be overwritten using
the entity variant information.callback - asynchronous invocation callback.future.public <R> CompletableFuture<R> get(InvocationCallback<R> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
get in interface AsyncInvokerR - generic response entity type.callback - asynchronous invocation callback.future.public <R> CompletableFuture<R> put(Entity<?> entity, InvocationCallback<R> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
put in interface AsyncInvokerR - generic response entity type.entity - request entity, including it's full Variant information.
Any variant-related HTTP headers previously set (namely Content-Type,
Content-Language and Content-Encoding) will be overwritten using
the entity variant information.callback - asynchronous invocation callback.future.public <R> CompletableFuture<R> post(Entity<?> entity, InvocationCallback<R> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
post in interface AsyncInvokerR - generic response entity type.entity - request entity, including it's full Variant information.
Any variant-related HTTP headers previously set (namely Content-Type,
Content-Language and Content-Encoding) will be overwritten using
the entity variant information.callback - asynchronous invocation callback.future.public <R> CompletableFuture<R> delete(InvocationCallback<R> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
delete in interface AsyncInvokerR - generic response entity type.callback - asynchronous invocation callback.future.public CompletableFuture<Response> head(InvocationCallback<Response> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps a ProcessingException thrown in case of an invocation processing
failure.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
head in interface AsyncInvokercallback - asynchronous invocation callback.future.public <R> CompletableFuture<R> options(InvocationCallback<R> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
options in interface AsyncInvokerR - generic response entity type.callback - asynchronous invocation callback.future.public <R> CompletableFuture<R> trace(InvocationCallback<R> callback)
AsyncInvoker
Note that calling the Future.get() method on the returned
Future instance may throw an ExecutionException
that wraps either a ProcessingException thrown in case of an invocation processing
failure or a WebApplicationException or one of its subclasses thrown in case the
received response status code is not successful and the generic type of the supplied response callback is not
Response.
In case a processing of a properly received response fails, the wrapped processing exception
will be of ResponseProcessingException type and will contain the Response
instance whose processing has failed.
trace in interface AsyncInvokerR - generic response entity type.callback - asynchronous invocation callback.future.public T get()
public <R> T get(GenericType<R> responseType)
public <R> T put(Entity<?> entity, GenericType<R> type)
public <R> T post(Entity<?> entity, GenericType<R> type)
public T delete()
public <R> T delete(GenericType<R> responseType)
public T head()
public T options()
public <R> T options(GenericType<R> responseType)
public T trace()
public <R> T trace(GenericType<R> responseType)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.