Package org.glassfish.jersey.client
Class JerseyCompletionStageRxInvoker
- java.lang.Object
-
- org.glassfish.jersey.client.JerseyCompletionStageRxInvoker
-
- All Implemented Interfaces:
AsyncInvoker,CompletionStageRxInvoker,RxInvoker<CompletionStage>
public class JerseyCompletionStageRxInvoker extends Object implements CompletionStageRxInvoker
Implementation of Reactive Invoker forCompletionStage. This class allows for usingInvocationCallbackinInvocation.Builder.rx(JerseyCompletionStageRxInvoker.class)requests.- Since:
- 2.26
- Author:
- Michal Gajdos
-
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
method
public CompletableFuture<Response> method(String name)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, Class<T> responseType)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, GenericType<T> responseType)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, InvocationCallback<T> callback)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public CompletableFuture<Response> method(String name, Entity<?> entity)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, Entity<?> entity, Class<T> responseType)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, Entity<?> entity, GenericType<T> responseType)
- Specified by:
methodin interfaceAsyncInvoker
-
method
public <T> CompletableFuture<T> method(String name, Entity<?> entity, InvocationCallback<T> callback)
- Specified by:
methodin interfaceAsyncInvoker
-
get
public <R> CompletableFuture<R> get(InvocationCallback<R> callback)
- Specified by:
getin interfaceAsyncInvoker
-
put
public <R> CompletableFuture<R> put(Entity<?> entity, InvocationCallback<R> callback)
- Specified by:
putin interfaceAsyncInvoker
-
post
public <R> CompletableFuture<R> post(Entity<?> entity, InvocationCallback<R> callback)
- Specified by:
postin interfaceAsyncInvoker
-
delete
public <R> CompletableFuture<R> delete(InvocationCallback<R> callback)
- Specified by:
deletein interfaceAsyncInvoker
-
head
public CompletableFuture<Response> head(InvocationCallback<Response> callback)
- Specified by:
headin interfaceAsyncInvoker
-
options
public <R> CompletableFuture<R> options(InvocationCallback<R> callback)
- Specified by:
optionsin interfaceAsyncInvoker
-
trace
public <R> CompletableFuture<R> trace(InvocationCallback<R> callback)
- Specified by:
tracein interfaceAsyncInvoker
-
get
public T get()
-
get
public <R> T get(GenericType<R> responseType)
-
put
public <R> T put(Entity<?> entity, GenericType<R> type)
-
post
public <R> T post(Entity<?> entity, GenericType<R> type)
-
delete
public T delete()
-
delete
public <R> T delete(GenericType<R> responseType)
-
head
public T head()
-
options
public T options()
-
options
public <R> T options(GenericType<R> responseType)
-
trace
public T trace()
-
trace
public <R> T trace(GenericType<R> responseType)
-
-