public class AsyncWebResource.Builder extends PartialRequestBuilder<AsyncWebResource.Builder> implements AsyncUniformInterface
ClientRequest instance and
handling the request using the UniformInterface. The methods
of the UniformInterface are the build methods of the builder.entity, metadata| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<?> |
delete()
Invoke the DELETE method with no request entity or response.
|
<T> java.util.concurrent.Future<T> |
delete(java.lang.Class<T> c)
Invoke the DELETE method with no request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
delete(java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke the DELETE method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
delete(GenericType<T> gt)
Invoke the DELETE method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
delete(GenericType<T> gt,
java.lang.Object requestEntity)
Invoke the DELETE method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
delete(ITypeListener<T> l)
Invoke the DELETE method.
|
<T> java.util.concurrent.Future<T> |
delete(ITypeListener<T> l,
java.lang.Object requestEntity)
Invoke the DELETE method.
|
java.util.concurrent.Future<?> |
delete(java.lang.Object requestEntity)
Invoke the DELETE method with a request entity but no response.
|
<T> java.util.concurrent.Future<T> |
get(java.lang.Class<T> c)
Invoke the GET method.
|
<T> java.util.concurrent.Future<T> |
get(GenericType<T> gt)
Invoke the GET method.
|
<T> java.util.concurrent.Future<T> |
get(ITypeListener<T> l)
Invoke the GET method.
|
java.util.concurrent.Future<ClientResponse> |
head()
Invoke the HEAD method.
|
java.util.concurrent.Future<ClientResponse> |
head(ITypeListener<ClientResponse> l)
Invoke the HEAD method.
|
java.util.concurrent.Future<?> |
method(java.lang.String method)
Invoke a HTTP method with no request entity or response.
|
<T> java.util.concurrent.Future<T> |
method(java.lang.String method,
java.lang.Class<T> c)
Invoke a HTTP method with no request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
method(java.lang.String method,
java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke a HTTP method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
method(java.lang.String method,
GenericType<T> gt)
Invoke a HTTP method with no request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
method(java.lang.String method,
GenericType<T> gt,
java.lang.Object requestEntity)
Invoke a HTTP method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
method(java.lang.String method,
ITypeListener<T> l)
Invoke a HTTP method with no request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
method(java.lang.String method,
ITypeListener<T> l,
java.lang.Object requestEntity)
Invoke a HTTP method with a request entity that returns a response.
|
java.util.concurrent.Future<?> |
method(java.lang.String method,
java.lang.Object requestEntity)
Invoke a HTTP method with a request entity but no response.
|
<T> java.util.concurrent.Future<T> |
options(java.lang.Class<T> c)
Invoke the OPTIONS method.
|
<T> java.util.concurrent.Future<T> |
options(GenericType<T> gt)
Invoke the OPTIONS method.
|
<T> java.util.concurrent.Future<T> |
options(ITypeListener<T> l)
Invoke the OPTIONS method.
|
java.util.concurrent.Future<?> |
post()
Invoke the POST method with no request entity or response.
|
<T> java.util.concurrent.Future<T> |
post(java.lang.Class<T> c)
Invoke the POST method with no request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
post(java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke the POST method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
post(GenericType<T> gt)
Invoke the POST method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
post(GenericType<T> gt,
java.lang.Object requestEntity)
Invoke the POST method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
post(ITypeListener<T> l)
Invoke the POST method.
|
<T> java.util.concurrent.Future<T> |
post(ITypeListener<T> l,
java.lang.Object requestEntity)
Invoke the POST method.
|
java.util.concurrent.Future<?> |
post(java.lang.Object requestEntity)
Invoke the POST method with a request entity but no response.
|
java.util.concurrent.Future<?> |
put()
Invoke the PUT method with no request entity or response.
|
<T> java.util.concurrent.Future<T> |
put(java.lang.Class<T> c)
Invoke the PUT method with no request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
put(java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke the PUT method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
put(GenericType<T> gt)
Invoke the PUT method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
put(GenericType<T> gt,
java.lang.Object requestEntity)
Invoke the PUT method with a request entity that returns a response.
|
<T> java.util.concurrent.Future<T> |
put(ITypeListener<T> l)
Invoke the PUT method.
|
<T> java.util.concurrent.Future<T> |
put(ITypeListener<T> l,
java.lang.Object requestEntity)
Invoke the PUT method.
|
java.util.concurrent.Future<?> |
put(java.lang.Object requestEntity)
Invoke the PUT method with a request entity but no response.
|
accept, accept, acceptLanguage, acceptLanguage, cookie, entity, entity, entity, header, type, typepublic java.util.concurrent.Future<ClientResponse> head()
AsyncUniformInterfacehead in interface AsyncUniformInterfacepublic java.util.concurrent.Future<ClientResponse> head(ITypeListener<ClientResponse> l)
AsyncUniformInterfacehead in interface AsyncUniformInterfacel - the listener to receive asynchronous callbacks.public <T> java.util.concurrent.Future<T> options(java.lang.Class<T> c)
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
options in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.c.public <T> java.util.concurrent.Future<T> options(GenericType<T> gt)
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
options in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.public <T> java.util.concurrent.Future<T> options(ITypeListener<T> l)
AsyncUniformInterfaceoptions in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.public <T> java.util.concurrent.Future<T> get(java.lang.Class<T> c)
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
get in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.c.public <T> java.util.concurrent.Future<T> get(GenericType<T> gt)
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
get in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.public <T> java.util.concurrent.Future<T> get(ITypeListener<T> l)
AsyncUniformInterfaceget in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.public java.util.concurrent.Future<?> put()
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
put in interface AsyncUniformInterfaceUniformInterfaceExceptionpublic java.util.concurrent.Future<?> put(java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
put in interface AsyncUniformInterfacerequestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> put(java.lang.Class<T> c)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
put in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> put(GenericType<T> gt) throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
put in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> put(ITypeListener<T> l)
AsyncUniformInterfaceput in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.public <T> java.util.concurrent.Future<T> put(java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
put in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.requestEntity - the request entity.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> put(GenericType<T> gt, java.lang.Object requestEntity) throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
put in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> put(ITypeListener<T> l, java.lang.Object requestEntity)
AsyncUniformInterfaceput in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.requestEntity - the request entity.public java.util.concurrent.Future<?> post()
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
post in interface AsyncUniformInterfaceUniformInterfaceExceptionpublic java.util.concurrent.Future<?> post(java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
post in interface AsyncUniformInterfacerequestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> post(java.lang.Class<T> c)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
post in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> post(GenericType<T> gt) throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
post in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> post(ITypeListener<T> l)
AsyncUniformInterfacepost in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.public <T> java.util.concurrent.Future<T> post(java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
post in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.requestEntity - the request entity.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> post(GenericType<T> gt, java.lang.Object requestEntity) throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
post in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> post(ITypeListener<T> l, java.lang.Object requestEntity)
AsyncUniformInterfacepost in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.requestEntity - the request entity.public java.util.concurrent.Future<?> delete()
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
delete in interface AsyncUniformInterfaceUniformInterfaceExceptionpublic java.util.concurrent.Future<?> delete(java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
delete in interface AsyncUniformInterfacerequestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> delete(java.lang.Class<T> c)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
delete in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> delete(GenericType<T> gt) throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
delete in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> delete(ITypeListener<T> l)
AsyncUniformInterfacedelete in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.public <T> java.util.concurrent.Future<T> delete(java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
delete in interface AsyncUniformInterfaceT - the type of the response.c - the type of the returned response.requestEntity - the request entity.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> delete(GenericType<T> gt, java.lang.Object requestEntity) throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
delete in interface AsyncUniformInterfaceT - the type of the response.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> delete(ITypeListener<T> l, java.lang.Object requestEntity)
AsyncUniformInterfacedelete in interface AsyncUniformInterfaceT - the type of the response.l - the listener to receive asynchronous callbacks.requestEntity - the request entity.public java.util.concurrent.Future<?> method(java.lang.String method)
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
method in interface AsyncUniformInterfacemethod - the HTTP method.UniformInterfaceExceptionpublic java.util.concurrent.Future<?> method(java.lang.String method,
java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterfaceIf the status of the HTTP response is less than 300 and a representation is present then that representation is ignored.
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300.
method in interface AsyncUniformInterfacemethod - the HTTP method.requestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> method(java.lang.String method,
java.lang.Class<T> c)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
method in interface AsyncUniformInterfaceT - the type of the response.method - the HTTP method.c - the type of the returned response.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> method(java.lang.String method,
GenericType<T> gt)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
method in interface AsyncUniformInterfaceT - the type of the response.method - the HTTP method.gt - the generic type of the returned response.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> method(java.lang.String method,
ITypeListener<T> l)
AsyncUniformInterfacemethod in interface AsyncUniformInterfaceT - the type of the response.method - the HTTP method.l - the listener to receive asynchronous callbacks.public <T> java.util.concurrent.Future<T> method(java.lang.String method,
java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
c is not the type ClientResponse.
method in interface AsyncUniformInterfaceT - the type of the response.method - the HTTP method.c - the type of the returned response.requestEntity - the request entity.c.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> method(java.lang.String method,
GenericType<T> gt,
java.lang.Object requestEntity)
throws UniformInterfaceException
AsyncUniformInterface
The Future.get() method will throw a UniformInterfaceException
if the status of the HTTP response is greater than or equal to 300 and
gt is not the type ClientResponse.
method in interface AsyncUniformInterfaceT - the type of the response.method - the HTTP method.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceExceptionpublic <T> java.util.concurrent.Future<T> method(java.lang.String method,
ITypeListener<T> l,
java.lang.Object requestEntity)
AsyncUniformInterfacemethod in interface AsyncUniformInterfaceT - the type of the response.method - the HTTP method.l - the listener to receive asynchronous callbacks.requestEntity - the request entity.Copyright © 2016 Oracle Corporation. All Rights Reserved.