Top Description Methods
javax.ws.rs.client

public Interface AsyncInvoker

Imports
java.util.concurrent.Future, javax.ws.rs.WebApplicationException, javax.ws.rs.core.GenericType, .Response

Uniform interface for asynchronous invocation of HTTP methods.
Author
Marek Potociar
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Future<Response>

Returns:

invocation response future.
delete
()

Invoke HTTP DELETE method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
delete
(Class<T>
Java type the response entity will be converted to.
responseType
)

Invoke HTTP DELETE method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
delete
(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Invoke HTTP DELETE method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
delete
(InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke HTTP DELETE method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
get
()

Invoke HTTP GET method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
get
(Class<T>
Java type the response entity will be converted to.
responseType
)

Invoke HTTP GET method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
get
(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Invoke HTTP GET method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
get
(InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke HTTP GET method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
head
()

Invoke HTTP HEAD method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
head
(InvocationCallback<Response>
asynchronous invocation callback.
callback
)

Invoke HTTP HEAD method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
method
(String
method name.
name
)

Invoke an arbitrary method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
method
(String
method name.
name
,
Class<T>
Java type the response entity will be converted to.
responseType
)

Invoke an arbitrary method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
method
(String
method name.
name
,
GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Invoke an arbitrary method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
method
(String
method name.
name
,
InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke an arbitrary method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
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
)

Invoke an arbitrary method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
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
)

Invoke an arbitrary method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
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
)

Invoke an arbitrary method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
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
,
InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke an arbitrary method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
options
()

Invoke HTTP OPTIONS method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
options
(Class<T>
Java type the response entity will be converted to.
responseType
)

Invoke HTTP OPTIONS method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
options
(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Invoke HTTP OPTIONS method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
options
(InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke HTTP OPTIONS method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
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
)

Invoke HTTP POST method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
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.
responseType
)

Invoke HTTP POST method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
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.
responseType
)

Invoke HTTP POST method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
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
,
InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke HTTP POST method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
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
)

Invoke HTTP PUT method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
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.
responseType
)

Invoke HTTP PUT method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
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.
responseType
)

Invoke HTTP PUT method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
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
,
InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke HTTP PUT method for the current request asynchronously.

public Future<Response>

Returns:

invocation response future.
trace
()

Invoke HTTP TRACE method for the current request asynchronously.

public <
response entity type.
T
>
Future<T>

Returns:

invocation response future.
trace
(Class<T>
Java type the response entity will be converted to.
responseType
)

Invoke HTTP TRACE method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
trace
(GenericType<T>
representation of a generic Java type the response entity will be converted to.
responseType
)

Invoke HTTP TRACE method for the current request asynchronously.

public <
generic response entity type.
T
>
Future<T>

Returns:

invocation response future.
trace
(InvocationCallback<T>
asynchronous invocation callback.
callback
)

Invoke HTTP TRACE method for the current request asynchronously.