Top Description Methods
javax.ws.rs.client

public Interface CompletionStageRxInvoker

extends RxInvoker<CompletionStage<T>>
Imports
java.util.concurrent.CompletionStage, javax.ws.rs.core.GenericType, .Response

Reactive invoker based java.util.concurrent.CompletionStage.
Authors
Marek Potociar, Santiago Pericas-Geertsen
Since
2.1

Method Summary

Modifier and TypeMethod and Description
public CompletionStage<Response>
delete()

Redeclares javax.ws.rs.client.RxInvoker.delete.

Invoke HTTP DELETE method for the current request.
public <T> CompletionStage<T>
delete(Class<T>
Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.delete.

Invoke HTTP DELETE method for the current request.
public <T> CompletionStage<T>
delete(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.delete.

Invoke HTTP DELETE method for the current request.
public CompletionStage<Response>
get()

Redeclares javax.ws.rs.client.RxInvoker.get.

Invoke HTTP GET method for the current request.
public <T> CompletionStage<T>
get(Class<T>
Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.get.

Invoke HTTP GET method for the current request.
public <T> CompletionStage<T>
get(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.get.

Invoke HTTP GET method for the current request.
public CompletionStage<Response>
head()

Redeclares javax.ws.rs.client.RxInvoker.head.

Invoke HTTP HEAD method for the current request.
public CompletionStage<Response>
method(String
method name.
name
)

Redeclares javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.
public <T> CompletionStage<T>
method(String
method name.
name
,
Class<T>
Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.
public <T> CompletionStage<T>
method(String
method name.
name
,
GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.
public CompletionStage<Response>
method(String
method name.
name
,
Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
)

Redeclares javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.
public <T> CompletionStage<T>
method(String
method name.
name
,
Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
,
Class<T>
Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.
public <T> CompletionStage<T>
method(String
method name.
name
,
Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
,
GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.
public CompletionStage<Response>
options()

Redeclares javax.ws.rs.client.RxInvoker.options.

Invoke HTTP OPTIONS method for the current request.
public <T> CompletionStage<T>
options(Class<T>
Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.options.

Invoke HTTP OPTIONS method for the current request.
public <T> CompletionStage<T>
options(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.options.

Invoke HTTP OPTIONS method for the current request.
public CompletionStage<Response>
post(Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
)

Redeclares javax.ws.rs.client.RxInvoker.post.

Invoke HTTP POST method for the current request.
public <T> CompletionStage<T>
post(Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
,
Class<T>
Java type the response entity will be converted to.
clazz
)

Redeclares javax.ws.rs.client.RxInvoker.post.

Invoke HTTP POST method for the current request.
public <T> CompletionStage<T>
post(Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
,
GenericType<T>
representation of a generic Java type the response entity will be converted to.
type
)

Redeclares javax.ws.rs.client.RxInvoker.post.

Invoke HTTP POST method for the current request.
public CompletionStage<Response>
put(Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
)

Redeclares javax.ws.rs.client.RxInvoker.put.

Invoke HTTP PUT method for the current request.
public <T> CompletionStage<T>
put(Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
,
Class<T>
Java type the response entity will be converted to.
clazz
)

Redeclares javax.ws.rs.client.RxInvoker.put.

Invoke HTTP PUT method for the current request.
public <T> CompletionStage<T>
put(Entity<?>
request entity, including it's full javax.ws.rs.core.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.
entity
,
GenericType<T>
representation of a generic Java type the response entity will be converted to.
type
)

Redeclares javax.ws.rs.client.RxInvoker.put.

Invoke HTTP PUT method for the current request.
public CompletionStage<Response>
trace()

Redeclares javax.ws.rs.client.RxInvoker.trace.

Invoke HTTP TRACE method for the current request.
public <T> CompletionStage<T>
trace(Class<T>
Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.trace.

Invoke HTTP TRACE method for the current request.
public <T> CompletionStage<T>
trace(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Redeclares javax.ws.rs.client.RxInvoker.trace.

Invoke HTTP TRACE method for the current request.

Method Detail

deleteback to summary
public CompletionStage<Response> delete()

Redeclares javax.ws.rs.client.RxInvoker.delete.

Doc from javax.ws.rs.client.RxInvoker.delete.

Invoke HTTP DELETE method for the current request.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
deleteback to summary
public <T> CompletionStage<T> delete(Class<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.delete.

Doc from javax.ws.rs.client.RxInvoker.delete.

Invoke HTTP DELETE method for the current request.

Parameters
<T>
response entity type.
responseType:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
deleteback to summary
public <T> CompletionStage<T> delete(GenericType<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.delete.

Doc from javax.ws.rs.client.RxInvoker.delete.

Invoke HTTP DELETE method for the current request.

Parameters
<T>
generic response entity type.
responseType:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
getback to summary
public CompletionStage<Response> get()

Redeclares javax.ws.rs.client.RxInvoker.get.

Doc from javax.ws.rs.client.RxInvoker.get.

Invoke HTTP GET method for the current request.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
getback to summary
public <T> CompletionStage<T> get(Class<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.get.

Doc from javax.ws.rs.client.RxInvoker.get.

Invoke HTTP GET method for the current request.

Parameters
<T>
response entity type.
responseType:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
getback to summary
public <T> CompletionStage<T> get(GenericType<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.get.

Doc from javax.ws.rs.client.RxInvoker.get.

Invoke HTTP GET method for the current request.

Parameters
<T>
generic response entity type.
responseType:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
headback to summary
public CompletionStage<Response> head()

Redeclares javax.ws.rs.client.RxInvoker.head.

Doc from javax.ws.rs.client.RxInvoker.head.

Invoke HTTP HEAD method for the current request.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
methodback to summary
public CompletionStage<Response> method(String name)

Redeclares javax.ws.rs.client.RxInvoker.method.

Doc from javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.

Parameters
name:String

method name.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type..

Annotations
@Override
methodback to summary
public <T> CompletionStage<T> method(String name, Class<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.method.

Doc from javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.

Parameters
<T>
response entity type.
name:String

method name.

responseType:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type..

Annotations
@Override
methodback to summary
public <T> CompletionStage<T> method(String name, GenericType<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.method.

Doc from javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.

Parameters
<T>
generic response entity type.
name:String

method name.

responseType:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type..

Annotations
@Override
methodback to summary
public CompletionStage<Response> method(String name, Entity<?> entity)

Redeclares javax.ws.rs.client.RxInvoker.method.

Doc from javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.

Parameters
name:String

method name.

entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type..

Annotations
@Override
methodback to summary
public <T> CompletionStage<T> method(String name, Entity<?> entity, Class<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.method.

Doc from javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.

Parameters
<T>
response entity type.
name:String

method name.

entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type..

Annotations
@Override
methodback to summary
public <T> CompletionStage<T> method(String name, Entity<?> entity, GenericType<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.method.

Doc from javax.ws.rs.client.RxInvoker.method.

Invoke an arbitrary method for the current request.

Parameters
<T>
generic response entity type.
name:String

method name.

entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type..

Annotations
@Override
optionsback to summary
public CompletionStage<Response> options()

Redeclares javax.ws.rs.client.RxInvoker.options.

Doc from javax.ws.rs.client.RxInvoker.options.

Invoke HTTP OPTIONS method for the current request.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
optionsback to summary
public <T> CompletionStage<T> options(Class<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.options.

Doc from javax.ws.rs.client.RxInvoker.options.

Invoke HTTP OPTIONS method for the current request.

Parameters
<T>
response entity type.
responseType:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
optionsback to summary
public <T> CompletionStage<T> options(GenericType<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.options.

Doc from javax.ws.rs.client.RxInvoker.options.

Invoke HTTP OPTIONS method for the current request.

Parameters
<T>
generic response entity type.
responseType:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
postback to summary
public CompletionStage<Response> post(Entity<?> entity)

Redeclares javax.ws.rs.client.RxInvoker.post.

Doc from javax.ws.rs.client.RxInvoker.post.

Invoke HTTP POST method for the current request.

Parameters
entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
postback to summary
public <T> CompletionStage<T> post(Entity<?> entity, Class<T> clazz)

Redeclares javax.ws.rs.client.RxInvoker.post.

Doc from javax.ws.rs.client.RxInvoker.post.

Invoke HTTP POST method for the current request.

Parameters
<T>
response entity type.
entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

clazz:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
postback to summary
public <T> CompletionStage<T> post(Entity<?> entity, GenericType<T> type)

Redeclares javax.ws.rs.client.RxInvoker.post.

Doc from javax.ws.rs.client.RxInvoker.post.

Invoke HTTP POST method for the current request.

Parameters
<T>
generic response entity type.
entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

type:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
putback to summary
public CompletionStage<Response> put(Entity<?> entity)

Redeclares javax.ws.rs.client.RxInvoker.put.

Doc from javax.ws.rs.client.RxInvoker.put.

Invoke HTTP PUT method for the current request.

Parameters
entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
putback to summary
public <T> CompletionStage<T> put(Entity<?> entity, Class<T> clazz)

Redeclares javax.ws.rs.client.RxInvoker.put.

Doc from javax.ws.rs.client.RxInvoker.put.

Invoke HTTP PUT method for the current request.

Parameters
<T>
response entity type.
entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

clazz:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
putback to summary
public <T> CompletionStage<T> put(Entity<?> entity, GenericType<T> type)

Redeclares javax.ws.rs.client.RxInvoker.put.

Doc from javax.ws.rs.client.RxInvoker.put.

Invoke HTTP PUT method for the current request.

Parameters
<T>
generic response entity type.
entity:Entity<?>

request entity, including it's full javax.ws.rs.core.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.

type:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
traceback to summary
public CompletionStage<Response> trace()

Redeclares javax.ws.rs.client.RxInvoker.trace.

Doc from javax.ws.rs.client.RxInvoker.trace.

Invoke HTTP TRACE method for the current request.

Returns:CompletionStage<Response>

invocation response wrapped in the completion aware type.

Annotations
@Override
traceback to summary
public <T> CompletionStage<T> trace(Class<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.trace.

Doc from javax.ws.rs.client.RxInvoker.trace.

Invoke HTTP TRACE method for the current request.

Parameters
<T>
response entity type.
responseType:Class<T>

Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override
traceback to summary
public <T> CompletionStage<T> trace(GenericType<T> responseType)

Redeclares javax.ws.rs.client.RxInvoker.trace.

Doc from javax.ws.rs.client.RxInvoker.trace.

Invoke HTTP TRACE method for the current request.

Parameters
<T>
generic response entity type.
responseType:GenericType<T>

representation of a generic Java type the response entity will be converted to.

Returns:CompletionStage<T>

invocation response wrapped in the completion aware type.

Annotations
@Override