T - the asynchronous/event-based completion aware type. The given type should be parametrized with the actual
response type.@Beta
public interface RxInvoker<T>
RxInvoker is intended to be extended and not used directly to preserve type safety. Extensions are supposed to
override all methods present in this interface specifying the actual return types. For example, reactive invoker providing
support for CompletionStage from Java 8 the overridden methods should look like:
@Override public CompletionStageInstances ofget(); @Override public <T> CompletionStage get(Class<T> responseType);
RxInvoker extensions are created using the
RxInvokerProvider SPI contract.SyncInvoker,
RxInvokerProvider| Modifier and Type | Method and Description |
|---|---|
T |
delete()
Invoke HTTP DELETE method for the current request.
|
<R> T |
delete(Class<R> responseType)
Invoke HTTP DELETE method for the current request.
|
<R> T |
delete(javax.ws.rs.core.GenericType<R> responseType)
Invoke HTTP DELETE method for the current request.
|
T |
get()
Invoke HTTP GET method for the current request.
|
<R> T |
get(Class<R> responseType)
Invoke HTTP GET method for the current request.
|
<R> T |
get(javax.ws.rs.core.GenericType<R> responseType)
Invoke HTTP GET method for the current request.
|
T |
head()
Invoke HTTP HEAD method for the current request.
|
T |
method(String name)
Invoke an arbitrary method for the current request.
|
<R> T |
method(String name,
Class<R> responseType)
Invoke an arbitrary method for the current request.
|
T |
method(String name,
javax.ws.rs.client.Entity<?> entity)
Invoke an arbitrary method for the current request.
|
<R> T |
method(String name,
javax.ws.rs.client.Entity<?> entity,
Class<R> responseType)
Invoke an arbitrary method for the current request.
|
<R> T |
method(String name,
javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<R> responseType)
Invoke an arbitrary method for the current request.
|
<R> T |
method(String name,
javax.ws.rs.core.GenericType<R> responseType)
Invoke an arbitrary method for the current request.
|
T |
options()
Invoke HTTP OPTIONS method for the current request.
|
<R> T |
options(Class<R> responseType)
Invoke HTTP OPTIONS method for the current request.
|
<R> T |
options(javax.ws.rs.core.GenericType<R> responseType)
Invoke HTTP OPTIONS method for the current request.
|
T |
post(javax.ws.rs.client.Entity<?> entity)
Invoke HTTP POST method for the current request.
|
<R> T |
post(javax.ws.rs.client.Entity<?> entity,
Class<R> responseType)
Invoke HTTP POST method for the current request.
|
<R> T |
post(javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<R> responseType)
Invoke HTTP POST method for the current request.
|
T |
put(javax.ws.rs.client.Entity<?> entity)
Invoke HTTP PUT method for the current request.
|
<R> T |
put(javax.ws.rs.client.Entity<?> entity,
Class<R> responseType)
Invoke HTTP PUT method for the current request.
|
<R> T |
put(javax.ws.rs.client.Entity<?> entity,
javax.ws.rs.core.GenericType<R> responseType)
Invoke HTTP PUT method for the current request.
|
T |
trace()
Invoke HTTP TRACE method for the current request.
|
<R> T |
trace(Class<R> responseType)
Invoke HTTP OPTIONS method for the current request.
|
<R> T |
trace(javax.ws.rs.core.GenericType<R> responseType)
Invoke HTTP TRACE method for the current request.
|
T get()
javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T get(Class<R> responseType)
R - response entity type.responseType - Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.core.GenericType<R> responseType)
R - generic response entity type.responseType - representation of a generic Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.client.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T put(javax.ws.rs.client.Entity<?> entity, 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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.client.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T post(javax.ws.rs.client.Entity<?> entity, 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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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()
javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T delete(Class<R> responseType)
R - response entity type.responseType - Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.core.GenericType<R> responseType)
R - generic response entity type.responseType - representation of a generic Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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()
javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.T options()
javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T options(Class<R> responseType)
R - response entity type.responseType - Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.core.GenericType<R> responseType)
R - generic response entity type.responseType - representation of a generic Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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()
javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T trace(Class<R> responseType)
R - response entity type.responseType - Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(javax.ws.rs.core.GenericType<R> responseType)
R - generic response entity type.responseType - representation of a generic Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(String name)
name - method name.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T method(String name, Class<R> responseType)
R - response entity type.name - method name.responseType - Java type the response entity will be converted to.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(String name, javax.ws.rs.core.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(String name, javax.ws.rs.client.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.<R> T method(String name, javax.ws.rs.client.Entity<?> entity, 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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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(String name, javax.ws.rs.client.Entity<?> entity, javax.ws.rs.core.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.javax.ws.rs.client.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).javax.ws.rs.ProcessingException - in case the request processing or subsequent I/O operation fails.javax.ws.rs.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.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.