Package javax.ws.rs.client
Interface CompletionStageRxInvoker
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<Response>delete()Invoke HTTP DELETE method for the current request.<T> java.util.concurrent.CompletionStage<T>delete(java.lang.Class<T> responseType)Invoke HTTP DELETE method for the current request.<T> java.util.concurrent.CompletionStage<T>delete(GenericType<T> responseType)Invoke HTTP DELETE method for the current request.java.util.concurrent.CompletionStage<Response>get()Invoke HTTP GET method for the current request.<T> java.util.concurrent.CompletionStage<T>get(java.lang.Class<T> responseType)Invoke HTTP GET method for the current request.<T> java.util.concurrent.CompletionStage<T>get(GenericType<T> responseType)Invoke HTTP GET method for the current request.java.util.concurrent.CompletionStage<Response>head()Invoke HTTP HEAD method for the current request.java.util.concurrent.CompletionStage<Response>method(java.lang.String name)Invoke an arbitrary method for the current request.<T> java.util.concurrent.CompletionStage<T>method(java.lang.String name, java.lang.Class<T> responseType)Invoke an arbitrary method for the current request.java.util.concurrent.CompletionStage<Response>method(java.lang.String name, Entity<?> entity)Invoke an arbitrary method for the current request.<T> java.util.concurrent.CompletionStage<T>method(java.lang.String name, Entity<?> entity, java.lang.Class<T> responseType)Invoke an arbitrary method for the current request.<T> java.util.concurrent.CompletionStage<T>method(java.lang.String name, Entity<?> entity, GenericType<T> responseType)Invoke an arbitrary method for the current request.<T> java.util.concurrent.CompletionStage<T>method(java.lang.String name, GenericType<T> responseType)Invoke an arbitrary method for the current request.java.util.concurrent.CompletionStage<Response>options()Invoke HTTP OPTIONS method for the current request.<T> java.util.concurrent.CompletionStage<T>options(java.lang.Class<T> responseType)Invoke HTTP OPTIONS method for the current request.<T> java.util.concurrent.CompletionStage<T>options(GenericType<T> responseType)Invoke HTTP OPTIONS method for the current request.java.util.concurrent.CompletionStage<Response>post(Entity<?> entity)Invoke HTTP POST method for the current request.<T> java.util.concurrent.CompletionStage<T>post(Entity<?> entity, java.lang.Class<T> clazz)Invoke HTTP POST method for the current request.<T> java.util.concurrent.CompletionStage<T>post(Entity<?> entity, GenericType<T> type)Invoke HTTP POST method for the current request.java.util.concurrent.CompletionStage<Response>put(Entity<?> entity)Invoke HTTP PUT method for the current request.<T> java.util.concurrent.CompletionStage<T>put(Entity<?> entity, java.lang.Class<T> clazz)Invoke HTTP PUT method for the current request.<T> java.util.concurrent.CompletionStage<T>put(Entity<?> entity, GenericType<T> type)Invoke HTTP PUT method for the current request.java.util.concurrent.CompletionStage<Response>trace()Invoke HTTP TRACE method for the current request.<T> java.util.concurrent.CompletionStage<T>trace(java.lang.Class<T> responseType)Invoke HTTP TRACE method for the current request.<T> java.util.concurrent.CompletionStage<T>trace(GenericType<T> responseType)Invoke HTTP TRACE method for the current request.
-
-
-
Method Detail
-
get
java.util.concurrent.CompletionStage<Response> get()
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.
-
get
<T> java.util.concurrent.CompletionStage<T> get(java.lang.Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.
-
get
<T> java.util.concurrent.CompletionStage<T> get(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> put(Entity<?> entity)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfaceRxInvoker<java.util.concurrent.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
<T> java.util.concurrent.CompletionStage<T> put(Entity<?> entity, java.lang.Class<T> clazz)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfaceRxInvoker<java.util.concurrent.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
<T> java.util.concurrent.CompletionStage<T> put(Entity<?> entity, GenericType<T> type)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> post(Entity<?> entity)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfaceRxInvoker<java.util.concurrent.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
<T> java.util.concurrent.CompletionStage<T> post(Entity<?> entity, java.lang.Class<T> clazz)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfaceRxInvoker<java.util.concurrent.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
<T> java.util.concurrent.CompletionStage<T> post(Entity<?> entity, GenericType<T> type)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> delete()
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.
-
delete
<T> java.util.concurrent.CompletionStage<T> delete(java.lang.Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.
-
delete
<T> java.util.concurrent.CompletionStage<T> delete(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> head()
Description copied from interface:RxInvokerInvoke HTTP HEAD method for the current request.
-
options
java.util.concurrent.CompletionStage<Response> options()
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.
-
options
<T> java.util.concurrent.CompletionStage<T> options(java.lang.Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.
-
options
<T> java.util.concurrent.CompletionStage<T> options(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> trace()
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.
-
trace
<T> java.util.concurrent.CompletionStage<T> trace(java.lang.Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.
-
trace
<T> java.util.concurrent.CompletionStage<T> trace(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> method(java.lang.String name)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.
-
method
<T> java.util.concurrent.CompletionStage<T> method(java.lang.String name, java.lang.Class<T> responseType)Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.
-
method
<T> java.util.concurrent.CompletionStage<T> method(java.lang.String name, GenericType<T> responseType)Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceRxInvoker<java.util.concurrent.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
java.util.concurrent.CompletionStage<Response> method(java.lang.String name, Entity<?> entity)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceRxInvoker<java.util.concurrent.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
<T> java.util.concurrent.CompletionStage<T> method(java.lang.String name, Entity<?> entity, java.lang.Class<T> responseType)Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceRxInvoker<java.util.concurrent.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
<T> java.util.concurrent.CompletionStage<T> method(java.lang.String name, Entity<?> entity, GenericType<T> responseType)Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfaceRxInvoker<java.util.concurrent.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..
-
-