Class PublisherRxInvokerImpl
- java.lang.Object
-
- org.jboss.resteasy.client.jaxrs.internal.PublisherRxInvokerImpl
-
- All Implemented Interfaces:
RxInvoker<org.reactivestreams.Publisher<?>>,PublisherRxInvoker
public abstract class PublisherRxInvokerImpl extends Object implements PublisherRxInvoker
-
-
Constructor Summary
Constructors Constructor Description PublisherRxInvokerImpl(ClientInvocationBuilder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.reactivestreams.Publisher<Response>delete()Invoke HTTP DELETE method for the current request.<T> org.reactivestreams.Publisher<T>delete(GenericType<T> responseType)Invoke HTTP DELETE method for the current request.<T> org.reactivestreams.Publisher<T>delete(Class<T> responseType)Invoke HTTP DELETE method for the current request.org.reactivestreams.Publisher<Response>get()Invoke HTTP GET method for the current request.<T> org.reactivestreams.Publisher<T>get(GenericType<T> responseType)Invoke HTTP GET method for the current request.<T> org.reactivestreams.Publisher<T>get(Class<T> responseType)Invoke HTTP GET method for the current request.org.reactivestreams.Publisher<Response>head()Invoke HTTP HEAD method for the current request.org.reactivestreams.Publisher<Response>method(String name)Invoke an arbitrary method for the current request.org.reactivestreams.Publisher<Response>method(String name, Entity<?> entity)Invoke an arbitrary method for the current request.<T> org.reactivestreams.Publisher<T>method(String name, Entity<?> entity, GenericType<T> responseType)Invoke an arbitrary method for the current request.<T> org.reactivestreams.Publisher<T>method(String name, Entity<?> entity, Class<T> responseType)Invoke an arbitrary method for the current request.<T> org.reactivestreams.Publisher<T>method(String name, GenericType<T> responseType)Invoke an arbitrary method for the current request.<T> org.reactivestreams.Publisher<T>method(String name, Class<T> responseType)Invoke an arbitrary method for the current request.org.reactivestreams.Publisher<Response>options()Invoke HTTP OPTIONS method for the current request.<T> org.reactivestreams.Publisher<T>options(GenericType<T> responseType)Invoke HTTP OPTIONS method for the current request.<T> org.reactivestreams.Publisher<T>options(Class<T> responseType)Invoke HTTP OPTIONS method for the current request.org.reactivestreams.Publisher<Response>post(Entity<?> entity)Invoke HTTP POST method for the current request.<T> org.reactivestreams.Publisher<T>post(Entity<?> entity, GenericType<T> type)Invoke HTTP POST method for the current request.<T> org.reactivestreams.Publisher<T>post(Entity<?> entity, Class<T> clazz)Invoke HTTP POST method for the current request.org.reactivestreams.Publisher<Response>put(Entity<?> entity)Invoke HTTP PUT method for the current request.<T> org.reactivestreams.Publisher<T>put(Entity<?> entity, GenericType<T> type)Invoke HTTP PUT method for the current request.<T> org.reactivestreams.Publisher<T>put(Entity<?> entity, Class<T> clazz)Invoke HTTP PUT method for the current request.protected abstract <T> org.reactivestreams.Publisher<T>toPublisher(CompletionStage<T> completable)org.reactivestreams.Publisher<Response>trace()Invoke HTTP TRACE method for the current request.<T> org.reactivestreams.Publisher<T>trace(GenericType<T> responseType)Invoke HTTP TRACE method for the current request.<T> org.reactivestreams.Publisher<T>trace(Class<T> responseType)Invoke HTTP TRACE method for the current request.
-
-
-
Constructor Detail
-
PublisherRxInvokerImpl
public PublisherRxInvokerImpl(ClientInvocationBuilder builder)
-
-
Method Detail
-
toPublisher
protected abstract <T> org.reactivestreams.Publisher<T> toPublisher(CompletionStage<T> completable)
-
get
public org.reactivestreams.Publisher<Response> get()
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfacePublisherRxInvoker- Specified by:
getin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- Returns:
- invocation response wrapped in the completion aware type.
-
get
public <T> org.reactivestreams.Publisher<T> get(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfacePublisherRxInvoker- Specified by:
getin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> get(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP GET method for the current request.- Specified by:
getin interfacePublisherRxInvoker- Specified by:
getin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> put(Entity<?> entity)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfacePublisherRxInvoker- Specified by:
putin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> put(Entity<?> entity, Class<T> clazz)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfacePublisherRxInvoker- Specified by:
putin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> put(Entity<?> entity, GenericType<T> type)
Description copied from interface:RxInvokerInvoke HTTP PUT method for the current request.- Specified by:
putin interfacePublisherRxInvoker- Specified by:
putin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> post(Entity<?> entity)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfacePublisherRxInvoker- Specified by:
postin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> post(Entity<?> entity, Class<T> clazz)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfacePublisherRxInvoker- Specified by:
postin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> post(Entity<?> entity, GenericType<T> type)
Description copied from interface:RxInvokerInvoke HTTP POST method for the current request.- Specified by:
postin interfacePublisherRxInvoker- Specified by:
postin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> delete()
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfacePublisherRxInvoker- Specified by:
deletein interfaceRxInvoker<org.reactivestreams.Publisher<?>>- Returns:
- invocation response wrapped in the completion aware type.
-
delete
public <T> org.reactivestreams.Publisher<T> delete(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfacePublisherRxInvoker- Specified by:
deletein interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> delete(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP DELETE method for the current request.- Specified by:
deletein interfacePublisherRxInvoker- Specified by:
deletein interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> head()
Description copied from interface:RxInvokerInvoke HTTP HEAD method for the current request.- Specified by:
headin interfacePublisherRxInvoker- Specified by:
headin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- Returns:
- invocation response wrapped in the completion aware type.
-
options
public org.reactivestreams.Publisher<Response> options()
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfacePublisherRxInvoker- Specified by:
optionsin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- Returns:
- invocation response wrapped in the completion aware type.
-
options
public <T> org.reactivestreams.Publisher<T> options(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfacePublisherRxInvoker- Specified by:
optionsin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> options(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP OPTIONS method for the current request.- Specified by:
optionsin interfacePublisherRxInvoker- Specified by:
optionsin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> trace()
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfacePublisherRxInvoker- Specified by:
tracein interfaceRxInvoker<org.reactivestreams.Publisher<?>>- Returns:
- invocation response wrapped in the completion aware type.
-
trace
public <T> org.reactivestreams.Publisher<T> trace(Class<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfacePublisherRxInvoker- Specified by:
tracein interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> trace(GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke HTTP TRACE method for the current request.- Specified by:
tracein interfacePublisherRxInvoker- Specified by:
tracein interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> method(String name)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfacePublisherRxInvoker- Specified by:
methodin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- Parameters:
name- method name.- Returns:
- invocation response wrapped in the completion aware type..
-
method
public <T> org.reactivestreams.Publisher<T> method(String name, Class<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfacePublisherRxInvoker- Specified by:
methodin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> method(String name, GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfacePublisherRxInvoker- Specified by:
methodin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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 org.reactivestreams.Publisher<Response> method(String name, Entity<?> entity)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfacePublisherRxInvoker- Specified by:
methodin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> method(String name, Entity<?> entity, Class<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfacePublisherRxInvoker- Specified by:
methodin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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> org.reactivestreams.Publisher<T> method(String name, Entity<?> entity, GenericType<T> responseType)
Description copied from interface:RxInvokerInvoke an arbitrary method for the current request.- Specified by:
methodin interfacePublisherRxInvoker- Specified by:
methodin interfaceRxInvoker<org.reactivestreams.Publisher<?>>- 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..
-
-