Class CompletionStageRxInvokerImpl
- java.lang.Object
-
- org.jboss.resteasy.client.jaxrs.internal.CompletionStageRxInvokerImpl
-
- All Implemented Interfaces:
CompletionStageRxInvoker,RxInvoker<CompletionStage>
public class CompletionStageRxInvokerImpl extends Object implements CompletionStageRxInvoker
- Author:
- Ron Sigal, Alessio Soldano
Date March 9, 2016
-
-
Constructor Summary
Constructors Constructor Description CompletionStageRxInvokerImpl(SyncInvoker builder)CompletionStageRxInvokerImpl(SyncInvoker builder, ExecutorService executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<Response>delete()Invoke HTTP DELETE method for the current request.<T> CompletionStage<T>delete(GenericType<T> responseType)Invoke HTTP DELETE method for the current request.<T> CompletionStage<T>delete(Class<T> responseType)Invoke HTTP DELETE method for the current request.CompletionStage<Response>get()Invoke HTTP GET method for the current request.<T> CompletionStage<T>get(GenericType<T> responseType)Invoke HTTP GET method for the current request.<T> CompletionStage<T>get(Class<T> responseType)Invoke HTTP GET method for the current request.ExecutorServicegetExecutor()CompletionStage<Response>head()Invoke HTTP HEAD method for the current request.CompletionStage<Response>method(String name)Invoke an arbitrary method for the current request.CompletionStage<Response>method(String name, Entity<?> entity)Invoke an arbitrary method for the current request.<T> CompletionStage<T>method(String name, Entity<?> entity, GenericType<T> responseType)Invoke an arbitrary method for the current request.<T> CompletionStage<T>method(String name, Entity<?> entity, Class<T> responseType)Invoke an arbitrary method for the current request.<T> CompletionStage<T>method(String name, GenericType<T> responseType)Invoke an arbitrary method for the current request.<T> CompletionStage<T>method(String name, Class<T> responseType)Invoke an arbitrary method for the current request.CompletionStage<Response>options()Invoke HTTP OPTIONS method for the current request.<T> CompletionStage<T>options(GenericType<T> responseType)Invoke HTTP OPTIONS method for the current request.<T> CompletionStage<T>options(Class<T> responseType)Invoke HTTP OPTIONS method for the current request.CompletionStage<Response>patch(Entity<?> entity)<T> CompletionStage<T>patch(Entity<?> entity, GenericType<T> responseType)<T> CompletionStage<T>patch(Entity<?> entity, Class<T> responseType)CompletionStage<Response>post(Entity<?> entity)Invoke HTTP POST method for the current request.<T> CompletionStage<T>post(Entity<?> entity, GenericType<T> type)Invoke HTTP POST method for the current request.<T> CompletionStage<T>post(Entity<?> entity, Class<T> clazz)Invoke HTTP POST method for the current request.CompletionStage<Response>put(Entity<?> entity)Invoke HTTP PUT method for the current request.<T> CompletionStage<T>put(Entity<?> entity, GenericType<T> type)Invoke HTTP PUT method for the current request.<T> CompletionStage<T>put(Entity<?> entity, Class<T> clazz)Invoke HTTP PUT method for the current request.CompletionStage<Response>trace()Invoke HTTP TRACE method for the current request.<T> CompletionStage<T>trace(GenericType<T> responseType)Invoke HTTP TRACE method for the current request.<T> CompletionStage<T>trace(Class<T> responseType)Invoke HTTP TRACE method for the current request.
-
-
-
Constructor Detail
-
CompletionStageRxInvokerImpl
public CompletionStageRxInvokerImpl(SyncInvoker builder)
-
CompletionStageRxInvokerImpl
public CompletionStageRxInvokerImpl(SyncInvoker builder, ExecutorService executor)
-
-
Method Detail
-
get
public CompletionStage<Response> get()
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfaceCompletionStageRxInvoker- Specified by:
getin interfaceRxInvoker<CompletionStage>- Returns:
- invocation response wrapped in the completion aware type.
-
get
public <T> CompletionStage<T> get(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfaceCompletionStageRxInvoker- Specified by:
getin interfaceRxInvoker<CompletionStage>- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
get
public <T> CompletionStage<T> get(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfaceCompletionStageRxInvoker- Specified by:
getin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type.
-
put
public CompletionStage<Response> put(Entity<?> entity)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfaceCompletionStageRxInvoker- Specified by:
putin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type.
-
put
public <T> CompletionStage<T> put(Entity<?> entity, Class<T> clazz)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfaceCompletionStageRxInvoker- Specified by:
putin interfaceRxInvoker<CompletionStage>- 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.clazz- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
put
public <T> CompletionStage<T> put(Entity<?> entity, GenericType<T> type)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfaceCompletionStageRxInvoker- Specified by:
putin interfaceRxInvoker<CompletionStage>- 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.type- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
post
public CompletionStage<Response> post(Entity<?> entity)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfaceCompletionStageRxInvoker- Specified by:
postin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type.
-
post
public <T> CompletionStage<T> post(Entity<?> entity, Class<T> clazz)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfaceCompletionStageRxInvoker- Specified by:
postin interfaceRxInvoker<CompletionStage>- 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.clazz- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
post
public <T> CompletionStage<T> post(Entity<?> entity, GenericType<T> type)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfaceCompletionStageRxInvoker- Specified by:
postin interfaceRxInvoker<CompletionStage>- 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.type- representation of a generic Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
delete
public CompletionStage<Response> delete()
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfaceCompletionStageRxInvoker- Specified by:
deletein interfaceRxInvoker<CompletionStage>- Returns:
- invocation response wrapped in the completion aware type.
-
delete
public <T> CompletionStage<T> delete(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfaceCompletionStageRxInvoker- Specified by:
deletein interfaceRxInvoker<CompletionStage>- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
delete
public <T> CompletionStage<T> delete(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfaceCompletionStageRxInvoker- Specified by:
deletein interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type.
-
head
public CompletionStage<Response> head()
Description copied from interface:RxInvokerInvoke HTTP HEAD method for the current request.- Specified by:
headin interfaceCompletionStageRxInvoker- Specified by:
headin interfaceRxInvoker<CompletionStage>- Returns:
- invocation response wrapped in the completion aware type.
-
options
public CompletionStage<Response> options()
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfaceCompletionStageRxInvoker- Specified by:
optionsin interfaceRxInvoker<CompletionStage>- Returns:
- invocation response wrapped in the completion aware type.
-
options
public <T> CompletionStage<T> options(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfaceCompletionStageRxInvoker- Specified by:
optionsin interfaceRxInvoker<CompletionStage>- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
options
public <T> CompletionStage<T> options(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfaceCompletionStageRxInvoker- Specified by:
optionsin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type.
-
trace
public CompletionStage<Response> trace()
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfaceCompletionStageRxInvoker- Specified by:
tracein interfaceRxInvoker<CompletionStage>- Returns:
- invocation response wrapped in the completion aware type.
-
trace
public <T> CompletionStage<T> trace(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfaceCompletionStageRxInvoker- Specified by:
tracein interfaceRxInvoker<CompletionStage>- Type Parameters:
T- response entity type.- Parameters:
responseType- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type.
-
trace
public <T> CompletionStage<T> trace(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfaceCompletionStageRxInvoker- Specified by:
tracein interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type.
-
method
public CompletionStage<Response> method(String name)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceCompletionStageRxInvoker- Specified by:
methodin interfaceRxInvoker<CompletionStage>- Parameters:
name- method name.- Returns:
- invocation response wrapped in the completion aware type..
-
method
public <T> CompletionStage<T> method(String name, Class<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceCompletionStageRxInvoker- Specified by:
methodin interfaceRxInvoker<CompletionStage>- Type Parameters:
T- response entity type.- Parameters:
name- method name.responseType- Java type the response entity will be converted to.- Returns:
- invocation response wrapped in the completion aware type..
-
method
public <T> CompletionStage<T> method(String name, GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceCompletionStageRxInvoker- Specified by:
methodin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type..
-
method
public CompletionStage<Response> method(String name, Entity<?> entity)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceCompletionStageRxInvoker- Specified by:
methodin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type..
-
method
public <T> CompletionStage<T> method(String name, Entity<?> entity, Class<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceCompletionStageRxInvoker- Specified by:
methodin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type..
-
method
public <T> CompletionStage<T> method(String name, Entity<?> entity, GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceCompletionStageRxInvoker- Specified by:
methodin interfaceRxInvoker<CompletionStage>- 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 wrapped in the completion aware type..
-
getExecutor
public ExecutorService getExecutor()
-
patch
public CompletionStage<Response> patch(Entity<?> entity)
-
patch
public <T> CompletionStage<T> patch(Entity<?> entity, Class<T> responseType)
-
patch
public <T> CompletionStage<T> patch(Entity<?> entity, GenericType<T> responseType)
-
-