com.sun.jersey.api.client
Class AsyncWebResource.Builder

java.lang.Object
  extended by com.sun.jersey.api.client.PartialRequestBuilder<AsyncWebResource.Builder>
      extended by com.sun.jersey.api.client.AsyncWebResource.Builder
All Implemented Interfaces:
AsyncUniformInterface, RequestBuilder<AsyncWebResource.Builder>
Enclosing class:
AsyncWebResource

public final class AsyncWebResource.Builder
extends PartialRequestBuilder<AsyncWebResource.Builder>
implements AsyncUniformInterface

The builder for building a ClientRequest instance and handling the request using the UniformInterface. The methods of the UniformInterface are the build methods of the builder.


Field Summary
 
Fields inherited from class com.sun.jersey.api.client.PartialRequestBuilder
entity, metadata
 
Method Summary
 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.
 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.
 java.util.concurrent.Future<ClientResponse> head()
          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.
 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.
 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.
 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.
 java.util.concurrent.Future<?> put(java.lang.Object requestEntity)
          Invoke the PUT method with a request entity but no response.
 
Methods inherited from class com.sun.jersey.api.client.PartialRequestBuilder
accept, accept, cookie, entity, entity, entity, header, type, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

head

public java.util.concurrent.Future<ClientResponse> head()
Description copied from interface: AsyncUniformInterface
Invoke the HEAD method.

Specified by:
head in interface AsyncUniformInterface
Returns:
the HTTP response.

options

public <T> java.util.concurrent.Future<T> options(java.lang.Class<T> c)
Description copied from interface: AsyncUniformInterface
Invoke the OPTIONS method.

Specified by:
options in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
Returns:
an instance of type c.

get

public <T> java.util.concurrent.Future<T> get(java.lang.Class<T> c)
Description copied from interface: AsyncUniformInterface
Invoke the GET method.

Specified by:
get in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
Returns:
an instance of type c.

put

public java.util.concurrent.Future<?> put()
Description copied from interface: AsyncUniformInterface
Invoke the PUT method with no request entity or response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
put in interface AsyncUniformInterface

put

public java.util.concurrent.Future<?> put(java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke the PUT method with a request entity but no response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
put in interface AsyncUniformInterface
Parameters:
requestEntity - the request entity.

put

public <T> java.util.concurrent.Future<T> put(java.lang.Class<T> c)
Description copied from interface: AsyncUniformInterface
Invoke the PUT method with no request entity that returns a response.

Specified by:
put in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
Returns:
an instance of type c.

put

public <T> java.util.concurrent.Future<T> put(java.lang.Class<T> c,
                                              java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke the PUT method with a request entity that returns a response.

Specified by:
put in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
requestEntity - the request entity.
Returns:
an instance of type c.

post

public java.util.concurrent.Future<?> post()
Description copied from interface: AsyncUniformInterface
Invoke the POST method with no request entity or response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
post in interface AsyncUniformInterface

post

public java.util.concurrent.Future<?> post(java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke the POST method with a request entity but no response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
post in interface AsyncUniformInterface
Parameters:
requestEntity - the request entity.

post

public <T> java.util.concurrent.Future<T> post(java.lang.Class<T> c)
Description copied from interface: AsyncUniformInterface
Invoke the POST method with no request entity that returns a response.

Specified by:
post in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
Returns:
an instance of type c.

post

public <T> java.util.concurrent.Future<T> post(java.lang.Class<T> c,
                                               java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke the POST method with a request entity that returns a response.

Specified by:
post in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
requestEntity - the request entity.
Returns:
an instance of type c.

delete

public java.util.concurrent.Future<?> delete()
Description copied from interface: AsyncUniformInterface
Invoke the DELETE method with no request entity or response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
delete in interface AsyncUniformInterface

delete

public java.util.concurrent.Future<?> delete(java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke the DELETE method with a request entity but no response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
delete in interface AsyncUniformInterface
Parameters:
requestEntity - the request entity.

delete

public <T> java.util.concurrent.Future<T> delete(java.lang.Class<T> c)
Description copied from interface: AsyncUniformInterface
Invoke the DELETE method with no request entity that returns a response.

Specified by:
delete in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
Returns:
an instance of type c.

delete

public <T> java.util.concurrent.Future<T> delete(java.lang.Class<T> c,
                                                 java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke the DELETE method with a request entity that returns a response.

Specified by:
delete in interface AsyncUniformInterface
Parameters:
c - the type of the returned response.
requestEntity - the request entity.
Returns:
an instance of type c.

method

public java.util.concurrent.Future<?> method(java.lang.String method)
Description copied from interface: AsyncUniformInterface
Invoke a HTTP method with no request entity or response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
method in interface AsyncUniformInterface
Parameters:
method - the HTTP method.

method

public java.util.concurrent.Future<?> method(java.lang.String method,
                                             java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke a HTTP method with a request entity but no response.

If the status code is less than 300 and a representation is present then that representation is ignored.

Specified by:
method in interface AsyncUniformInterface
Parameters:
method - the HTTP method.
requestEntity - the request entity.

method

public <T> java.util.concurrent.Future<T> method(java.lang.String method,
                                                 java.lang.Class<T> c)
Description copied from interface: AsyncUniformInterface
Invoke a HTTP method with no request entity that returns a response.

Specified by:
method in interface AsyncUniformInterface
Parameters:
method - the HTTP method.
c - the type of the returned response.
Returns:
an instance of type c.

method

public <T> java.util.concurrent.Future<T> method(java.lang.String method,
                                                 java.lang.Class<T> c,
                                                 java.lang.Object requestEntity)
Description copied from interface: AsyncUniformInterface
Invoke a HTTP method with a request entity that returns a response.

Specified by:
method in interface AsyncUniformInterface
Parameters:
method - the HTTP method.
c - the type of the returned response.
requestEntity - the request entity.
Returns:
an instance of type c.