|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncInvoker
Uniform interface for asynchronous invocation of HTTP methods.
| Method Summary | ||
|---|---|---|
java.util.concurrent.Future<Response> |
delete()
Invoke HTTP DELETE method for the current request asynchronously. |
|
|
delete(java.lang.Class<T> responseType)
Invoke HTTP DELETE method for the current request asynchronously. |
|
|
delete(GenericType<T> responseType)
Invoke HTTP DELETE method for the current request asynchronously. |
|
|
delete(InvocationCallback<T> callback)
Invoke HTTP DELETE method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
get()
Invoke HTTP GET method for the current request asynchronously. |
|
|
get(java.lang.Class<T> responseType)
Invoke HTTP GET method for the current request asynchronously. |
|
|
get(GenericType<T> responseType)
Invoke HTTP GET method for the current request asynchronously. |
|
|
get(InvocationCallback<T> callback)
Invoke HTTP GET method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
head()
Invoke HTTP HEAD method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
head(InvocationCallback<Response> callback)
Invoke HTTP HEAD method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
method(java.lang.String name)
Invoke an arbitrary method for the current request asynchronously. |
|
|
method(java.lang.String name,
java.lang.Class<T> responseType)
Invoke an arbitrary method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
method(java.lang.String name,
Entity<?> entity)
Invoke an arbitrary method for the current request asynchronously. |
|
|
method(java.lang.String name,
Entity<?> entity,
java.lang.Class<T> responseType)
Invoke an arbitrary method for the current request asynchronously. |
|
|
method(java.lang.String name,
Entity<?> entity,
GenericType<T> responseType)
Invoke an arbitrary method for the current request asynchronously. |
|
|
method(java.lang.String name,
Entity<?> entity,
InvocationCallback<T> callback)
Invoke an arbitrary method for the current request asynchronously. |
|
|
method(java.lang.String name,
GenericType<T> responseType)
Invoke an arbitrary method for the current request asynchronously. |
|
|
method(java.lang.String name,
InvocationCallback<T> callback)
Invoke an arbitrary method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
options()
Invoke HTTP OPTIONS method for the current request asynchronously. |
|
|
options(java.lang.Class<T> responseType)
Invoke HTTP OPTIONS method for the current request asynchronously. |
|
|
options(GenericType<T> responseType)
Invoke HTTP OPTIONS method for the current request asynchronously. |
|
|
options(InvocationCallback<T> callback)
Invoke HTTP OPTIONS method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
post(Entity<?> entity)
Invoke HTTP POST method for the current request asynchronously. |
|
|
post(Entity<?> entity,
java.lang.Class<T> responseType)
Invoke HTTP POST method for the current request asynchronously. |
|
|
post(Entity<?> entity,
GenericType<T> responseType)
Invoke HTTP POST method for the current request asynchronously. |
|
|
post(Entity<?> entity,
InvocationCallback<T> callback)
Invoke HTTP POST method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
put(Entity<?> entity)
Invoke HTTP PUT method for the current request asynchronously. |
|
|
put(Entity<?> entity,
java.lang.Class<T> responseType)
Invoke HTTP PUT method for the current request asynchronously. |
|
|
put(Entity<?> entity,
GenericType<T> responseType)
Invoke HTTP PUT method for the current request asynchronously. |
|
|
put(Entity<?> entity,
InvocationCallback<T> callback)
Invoke HTTP PUT method for the current request asynchronously. |
|
java.util.concurrent.Future<Response> |
trace(Entity<?> entity)
Invoke HTTP TRACE method for the current request asynchronously. |
|
|
trace(Entity<?> entity,
java.lang.Class<T> responseType)
Invoke HTTP TRACE method for the current request asynchronously. |
|
|
trace(Entity<?> entity,
GenericType<T> responseType)
Invoke HTTP TRACE method for the current request asynchronously. |
|
|
trace(Entity<?> entity,
InvocationCallback<T> callback)
Invoke HTTP TRACE method for the current request asynchronously. |
|
| Method Detail |
|---|
java.util.concurrent.Future<Response> get()
throws InvocationException
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> get(java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> get(GenericType<T> responseType)
throws InvocationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.<T> java.util.concurrent.Future<T> get(InvocationCallback<T> callback)
T - generic response entity type.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> put(Entity<?> entity)
throws InvocationException
entity - request entity.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> put(Entity<?> entity,
java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.entity - request entity.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> put(Entity<?> entity,
GenericType<T> responseType)
throws InvocationException
T - generic response entity type.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> put(Entity<?> entity,
InvocationCallback<T> callback)
T - generic response entity type.entity - request entity.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> post(Entity<?> entity)
throws InvocationException
entity - request entity.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> post(Entity<?> entity,
java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.entity - request entity.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> post(Entity<?> entity,
GenericType<T> responseType)
throws InvocationException
T - generic response entity type.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> post(Entity<?> entity,
InvocationCallback<T> callback)
T - generic response entity type.entity - request entity.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> delete()
throws InvocationException
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> delete(java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> delete(GenericType<T> responseType)
throws InvocationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.<T> java.util.concurrent.Future<T> delete(InvocationCallback<T> callback)
T - generic response entity type.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> head()
throws InvocationException
future.
InvocationException - in case the invocation failed.java.util.concurrent.Future<Response> head(InvocationCallback<Response> callback)
callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> options()
throws InvocationException
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> options(java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> options(GenericType<T> responseType)
throws InvocationException
T - generic response entity type.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.<T> java.util.concurrent.Future<T> options(InvocationCallback<T> callback)
T - generic response entity type.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> trace(Entity<?> entity)
throws InvocationException
entity - request entity.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> trace(Entity<?> entity,
java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.entity - request entity.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> trace(Entity<?> entity,
GenericType<T> responseType)
throws InvocationException
T - generic response entity type.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> trace(Entity<?> entity,
InvocationCallback<T> callback)
T - generic response entity type.entity - request entity.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> method(java.lang.String name)
throws InvocationException
name - method name.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> method(java.lang.String name,
java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.name - method name.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> method(java.lang.String name,
GenericType<T> responseType)
throws InvocationException
T - generic response entity type.name - method name.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> method(java.lang.String name,
InvocationCallback<T> callback)
T - generic response entity type.name - method name.callback - asynchronous invocation callback.
future.
java.util.concurrent.Future<Response> method(java.lang.String name,
Entity<?> entity)
throws InvocationException
name - method name.entity - request entity.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> method(java.lang.String name,
Entity<?> entity,
java.lang.Class<T> responseType)
throws InvocationException
T - response entity type.name - method name.entity - request entity.responseType - Java type the response entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> method(java.lang.String name,
Entity<?> entity,
GenericType<T> responseType)
throws InvocationException
T - generic response entity type.name - method name.entity - request entity.responseType - representation of a generic Java type the response
entity will be converted to.
future.
InvocationException - in case the invocation failed.
<T> java.util.concurrent.Future<T> method(java.lang.String name,
Entity<?> entity,
InvocationCallback<T> callback)
T - generic response entity type.name - method name.entity - request entity.callback - asynchronous invocation callback.
future.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||