RX - the concrete reactive invocation type.public interface RxInvocationBuilder<RX extends RxInvoker> extends Invocation.Builder
rx() and
rx(java.util.concurrent.ExecutorService), giving access to
reactive invoker that provide means to invoke reactive client requests.Invocation.Builder,
RxInvoker| Modifier and Type | Method and Description |
|---|---|
RxInvocationBuilder<RX> |
accept(MediaType... mediaTypes)
Add the accepted response media types.
|
RxInvocationBuilder<RX> |
accept(String... mediaTypes)
Add the accepted response media types.
|
RxInvocationBuilder<RX> |
acceptEncoding(String... encodings)
Add acceptable encodings.
|
RxInvocationBuilder<RX> |
acceptLanguage(Locale... locales)
Add acceptable languages.
|
RxInvocationBuilder<RX> |
acceptLanguage(String... locales)
Add acceptable languages.
|
RxInvocationBuilder<RX> |
cacheControl(CacheControl cacheControl)
Set the cache control data of the message.
|
RxInvocationBuilder<RX> |
cookie(Cookie cookie)
Add a cookie to be set.
|
RxInvocationBuilder<RX> |
cookie(String name,
String value)
Add a cookie to be set.
|
RxInvocationBuilder<RX> |
header(String name,
Object value)
Add an arbitrary header.
|
RxInvocationBuilder<RX> |
headers(MultivaluedMap<String,Object> headers)
Replaces all existing headers with the newly supplied headers.
|
RxInvocationBuilder<RX> |
property(String name,
Object value)
Set a new property in the context of a request represented by this invocation builder.
|
RX |
rx()
Access the reactive request invocation interface to invoke the built request.
|
RX |
rx(ExecutorService executorService)
Access the reactive request invocation interface to invoke the built request on a given
executor service. |
async, build, build, buildDelete, buildGet, buildPost, buildPutRX rx()
null if a invoker for a given type cannot be created.RX rx(ExecutorService executorService)
executor service.executorService - the executor service to execute current reactive request.null if a invoker for a given type cannot be created.RxInvocationBuilder<RX> accept(String... mediaTypes)
Invocation.Builderaccept in interface Invocation.BuildermediaTypes - accepted response media types.RxInvocationBuilder<RX> accept(MediaType... mediaTypes)
Invocation.Builderaccept in interface Invocation.BuildermediaTypes - accepted response media types.RxInvocationBuilder<RX> acceptLanguage(Locale... locales)
Invocation.BuilderacceptLanguage in interface Invocation.Builderlocales - an array of the acceptable languages.RxInvocationBuilder<RX> acceptLanguage(String... locales)
Invocation.BuilderacceptLanguage in interface Invocation.Builderlocales - an array of the acceptable languages.RxInvocationBuilder<RX> acceptEncoding(String... encodings)
Invocation.BuilderacceptEncoding in interface Invocation.Builderencodings - an array of the acceptable encodings.RxInvocationBuilder<RX> cookie(Cookie cookie)
Invocation.Buildercookie in interface Invocation.Buildercookie - to be set.RxInvocationBuilder<RX> cookie(String name, String value)
Invocation.Buildercookie in interface Invocation.Buildername - the name of the cookie.value - the value of the cookie.RxInvocationBuilder<RX> cacheControl(CacheControl cacheControl)
Invocation.BuildercacheControl in interface Invocation.BuildercacheControl - the cache control directives, if null
any existing cache control directives will be removed.RxInvocationBuilder<RX> header(String name, Object value)
Invocation.Builderheader in interface Invocation.Buildername - the name of the headervalue - the value of the header, the header will be serialized
using a RuntimeDelegate.HeaderDelegate if
one is available via RuntimeDelegate.createHeaderDelegate(java.lang.Class)
for the class of value or using its toString method
if a header delegate is not available. If value is null
then all current headers of the same name will be removed.RxInvocationBuilder<RX> headers(MultivaluedMap<String,Object> headers)
Invocation.Builderheaders in interface Invocation.Builderheaders - new headers to be set, if null all existing
headers will be removed.RxInvocationBuilder<RX> property(String name, Object value)
Invocation.Builder
The property is available for a later retrieval via ClientRequestContext.getProperty(String)
or InterceptorContext.getProperty(String).
If a property with a given name is already set in the request context,
the existing value of the property will be updated.
Setting a null value into a property effectively removes the property
from the request property bag.
property in interface Invocation.Buildername - property name.value - (new) property value. null value removes the property
with the given name.Invocation.property(String, Object)Copyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.