Package jakarta.ws.rs.client
Interface RxInvoker<T>
- Type Parameters:
- T- a type representing the asynchronous computation.
- All Known Subinterfaces:
- CompletionStageRxInvoker
public interface RxInvoker<T>
Uniform interface for reactive invocation of HTTP methods. All reactive invokers in JAX-RS must implement this
 interface. The type parameter 
T represents the Java type of an asynchronous computation. All JAX-RS
 implementations MUST support the default reactive invoker based on CompletionStage.- Since:
- 2.1
- Author:
- Marek Potociar, Santiago Pericas-Geertsen
- See Also:
- CompletionStageRxInvoker
- 
Method SummaryModifier and Type Method Description Tdelete()Invoke HTTP DELETE method for the current request.<R> Tdelete(GenericType<R> responseType)Invoke HTTP DELETE method for the current request.<R> Tdelete(Class<R> responseType)Invoke HTTP DELETE method for the current request.Tget()Invoke HTTP GET method for the current request.<R> Tget(GenericType<R> responseType)Invoke HTTP GET method for the current request.<R> Tget(Class<R> responseType)Invoke HTTP GET method for the current request.Thead()Invoke HTTP HEAD method for the current request.Tmethod(String name)Invoke an arbitrary method for the current request.Tmethod(String name, Entity<?> entity)Invoke an arbitrary method for the current request.<R> Tmethod(String name, Entity<?> entity, GenericType<R> responseType)Invoke an arbitrary method for the current request.<R> Tmethod(String name, Entity<?> entity, Class<R> responseType)Invoke an arbitrary method for the current request.<R> Tmethod(String name, GenericType<R> responseType)Invoke an arbitrary method for the current request.<R> Tmethod(String name, Class<R> responseType)Invoke an arbitrary method for the current request.Toptions()Invoke HTTP OPTIONS method for the current request.<R> Toptions(GenericType<R> responseType)Invoke HTTP OPTIONS method for the current request.<R> Toptions(Class<R> responseType)Invoke HTTP OPTIONS method for the current request.Tpost(Entity<?> entity)Invoke HTTP POST method for the current request.<R> Tpost(Entity<?> entity, GenericType<R> responseType)Invoke HTTP POST method for the current request.<R> Tpost(Entity<?> entity, Class<R> responseType)Invoke HTTP POST method for the current request.Tput(Entity<?> entity)Invoke HTTP PUT method for the current request.<R> Tput(Entity<?> entity, GenericType<R> responseType)Invoke HTTP PUT method for the current request.<R> Tput(Entity<?> entity, Class<R> responseType)Invoke HTTP PUT method for the current request.Ttrace()Invoke HTTP TRACE method for the current request.<R> Ttrace(GenericType<R> responseType)Invoke HTTP TRACE method for the current request.<R> Ttrace(Class<R> responseType)Invoke HTTP TRACE method for the current request.
- 
Method Details- 
getT get()Invoke HTTP GET method for the current request.- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
getInvoke HTTP GET method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
getInvoke HTTP GET method for the current request.- Type Parameters:
- R- 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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
putInvoke HTTP PUT method for the current request.- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
putInvoke HTTP PUT method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
putInvoke HTTP PUT method for the current request.- Type Parameters:
- R- generic response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
postInvoke HTTP POST method for the current request.- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
postInvoke HTTP POST method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
postInvoke HTTP POST method for the current request.- Type Parameters:
- R- generic response entity type.
- Parameters:
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
deleteT delete()Invoke HTTP DELETE method for the current request.- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
deleteInvoke HTTP DELETE method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
deleteInvoke HTTP DELETE method for the current request.- Type Parameters:
- R- 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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
headT head()Invoke HTTP HEAD method for the current request.- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
optionsT options()Invoke HTTP OPTIONS method for the current request.- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
optionsInvoke HTTP OPTIONS method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
optionsInvoke HTTP OPTIONS method for the current request.- Type Parameters:
- R- 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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
traceT trace()Invoke HTTP TRACE method for the current request.- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
traceInvoke HTTP TRACE method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- responseType- Java type the response entity will be converted to.
- Returns:
- invocation response wrapped in the completion aware type.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
traceInvoke HTTP TRACE method for the current request.- Type Parameters:
- R- 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.
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
methodInvoke an arbitrary method for the current request.- Parameters:
- name- method name.
- Returns:
- invocation response wrapped in the completion aware type..
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
methodInvoke an arbitrary method for the current request.- Type Parameters:
- R- 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..
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
methodInvoke an arbitrary method for the current request.- Type Parameters:
- R- 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..
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
methodInvoke an arbitrary method for the current request.- Parameters:
- name- method name.
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-Encoding) will be overwritten using the entity variant information.
- Returns:
- invocation response wrapped in the completion aware type..
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
 
- 
methodInvoke an arbitrary method for the current request.- Type Parameters:
- R- response entity type.
- Parameters:
- name- method name.
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-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..
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
- 
methodInvoke an arbitrary method for the current request.- Type Parameters:
- R- generic response entity type.
- Parameters:
- name- method name.
- entity- request entity, including it's full- Variantinformation. Any variant-related HTTP headers previously set (namely- Content-Type,- Content-Languageand- Content-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..
- Throws:
- ResponseProcessingException- in case processing of a received HTTP response fails (e.g. in a filter or during conversion of the response entity data to an instance of a particular Java type).
- ProcessingException- in case the request processing or subsequent I/O operation fails.
- WebApplicationException- in case the response status code of the response returned by the server is not- successfuland the specified response type is not- Response.
 
 
-