T
- a type representing the asynchronous computation.public interface RxInvoker<T>
T
represents the Java type of an asynchronous computation. All JAX-RS
implementations MUST support the default reactive invoker based on CompletionStage
.CompletionStageRxInvoker
Modifier and Type | Method and Description |
---|---|
T |
delete()
Invoke HTTP DELETE method for the current request.
|
<R> T |
delete(java.lang.Class<R> responseType)
Invoke HTTP DELETE method for the current request.
|
<R> T |
delete(GenericType<R> responseType)
Invoke HTTP DELETE method for the current request.
|
T |
get()
Invoke HTTP GET method for the current request.
|
<R> T |
get(java.lang.Class<R> responseType)
Invoke HTTP GET method for the current request.
|
<R> T |
get(GenericType<R> responseType)
Invoke HTTP GET method for the current request.
|
T |
head()
Invoke HTTP HEAD method for the current request.
|
T |
method(java.lang.String name)
Invoke an arbitrary method for the current request.
|
<R> T |
method(java.lang.String name,
java.lang.Class<R> responseType)
Invoke an arbitrary method for the current request.
|
T |
method(java.lang.String name,
Entity<?> entity)
Invoke an arbitrary method for the current request.
|
<R> T |
method(java.lang.String name,
Entity<?> entity,
java.lang.Class<R> responseType)
Invoke an arbitrary method for the current request.
|
<R> T |
method(java.lang.String name,
Entity<?> entity,
GenericType<R> responseType)
Invoke an arbitrary method for the current request.
|
<R> T |
method(java.lang.String name,
GenericType<R> responseType)
Invoke an arbitrary method for the current request.
|
T |
options()
Invoke HTTP OPTIONS method for the current request.
|
<R> T |
options(java.lang.Class<R> responseType)
Invoke HTTP OPTIONS method for the current request.
|
<R> T |
options(GenericType<R> responseType)
Invoke HTTP OPTIONS method for the current request.
|
T |
post(Entity<?> entity)
Invoke HTTP POST method for the current request.
|
<R> T |
post(Entity<?> entity,
java.lang.Class<R> responseType)
Invoke HTTP POST method for the current request.
|
<R> T |
post(Entity<?> entity,
GenericType<R> responseType)
Invoke HTTP POST method for the current request.
|
T |
put(Entity<?> entity)
Invoke HTTP PUT method for the current request.
|
<R> T |
put(Entity<?> entity,
java.lang.Class<R> responseType)
Invoke HTTP PUT method for the current request.
|
<R> T |
put(Entity<?> entity,
GenericType<R> responseType)
Invoke HTTP PUT method for the current request.
|
T |
trace()
Invoke HTTP TRACE method for the current request.
|
<R> T |
trace(java.lang.Class<R> responseType)
Invoke HTTP TRACE method for the current request.
|
<R> T |
trace(GenericType<R> responseType)
Invoke HTTP TRACE method for the current request.
|
T get()
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.<R> T get(java.lang.Class<R> responseType)
R
- response entity type.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T get(GenericType<R> responseType)
R
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T put(Entity<?> entity)
entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.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.<R> T put(Entity<?> entity, java.lang.Class<R> responseType)
R
- response entity type.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T put(Entity<?> entity, GenericType<R> responseType)
R
- generic response entity type.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T post(Entity<?> entity)
entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.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.<R> T post(Entity<?> entity, java.lang.Class<R> responseType)
R
- response entity type.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T post(Entity<?> entity, GenericType<R> responseType)
R
- generic response entity type.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T delete()
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.<R> T delete(java.lang.Class<R> responseType)
R
- response entity type.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T delete(GenericType<R> responseType)
R
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T head()
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.T options()
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.<R> T options(java.lang.Class<R> responseType)
R
- response entity type.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T options(GenericType<R> responseType)
R
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T trace()
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.<R> T trace(java.lang.Class<R> responseType)
R
- response entity type.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T trace(GenericType<R> responseType)
R
- generic response entity type.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T method(java.lang.String name)
name
- method name.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.<R> T method(java.lang.String name, java.lang.Class<R> responseType)
R
- response entity type.name
- method name.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T method(java.lang.String name, GenericType<R> responseType)
R
- generic response entity type.name
- method name.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.T method(java.lang.String name, Entity<?> entity)
name
- method name.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.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.<R> T method(java.lang.String name, Entity<?> entity, java.lang.Class<R> responseType)
R
- response entity type.name
- method name.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.responseType
- Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.<R> T method(java.lang.String name, Entity<?> entity, GenericType<R> responseType)
R
- generic response entity type.name
- method name.entity
- request entity, including it's full Variant
information. Any variant-related
HTTP headers previously set (namely Content-Type
, Content-Language
and Content-Encoding
) will
be overwritten using the entity variant information.responseType
- representation of a generic Java type the response entity will be converted to.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 successful
and the specified response type is not
Response
.