|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.api.client.PartialRequestBuilder<WebResource.Builder>
com.sun.jersey.api.client.WebResource.Builder
public final class WebResource.Builder
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 | ||
---|---|---|
void |
delete()
Invoke the DELETE method with no request entity or response. |
|
|
delete(java.lang.Class<T> c)
Invoke the DELETE method with no request entity that returns a response. |
|
|
delete(java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke the DELETE method with a request entity that returns a response. |
|
|
delete(GenericType<T> gt)
Invoke the DELETE method with a request entity that returns a response. |
|
|
delete(GenericType<T> gt,
java.lang.Object requestEntity)
Invoke the DELETE method with a request entity that returns a response. |
|
void |
delete(java.lang.Object requestEntity)
Invoke the DELETE method with a request entity but no response. |
|
|
get(java.lang.Class<T> c)
Invoke the GET method. |
|
|
get(GenericType<T> gt)
Invoke the GET method. |
|
ClientResponse |
head()
Invoke the HEAD method. |
|
void |
method(java.lang.String method)
Invoke a HTTP method with no request entity or response. |
|
|
method(java.lang.String method,
java.lang.Class<T> c)
Invoke a HTTP method with no request entity that returns a response. |
|
|
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. |
|
|
method(java.lang.String method,
GenericType<T> gt)
Invoke a HTTP method with no request entity that returns a response. |
|
|
method(java.lang.String method,
GenericType<T> gt,
java.lang.Object requestEntity)
Invoke a HTTP method with a request entity that returns a response. |
|
void |
method(java.lang.String method,
java.lang.Object requestEntity)
Invoke a HTTP method with a request entity but no response. |
|
|
options(java.lang.Class<T> c)
Invoke the OPTIONS method. |
|
|
options(GenericType<T> gt)
Invoke the OPTIONS method. |
|
void |
post()
Invoke the POST method with no request entity or response. |
|
|
post(java.lang.Class<T> c)
Invoke the POST method with no request entity that returns a response. |
|
|
post(java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke the POST method with a request entity that returns a response. |
|
|
post(GenericType<T> gt)
Invoke the POST method with a request entity that returns a response. |
|
|
post(GenericType<T> gt,
java.lang.Object requestEntity)
Invoke the POST method with a request entity that returns a response. |
|
void |
post(java.lang.Object requestEntity)
Invoke the POST method with a request entity but no response. |
|
void |
put()
Invoke the PUT method with no request entity or response. |
|
|
put(java.lang.Class<T> c)
Invoke the PUT method with no request entity that returns a response. |
|
|
put(java.lang.Class<T> c,
java.lang.Object requestEntity)
Invoke the PUT method with a request entity that returns a response. |
|
|
put(GenericType<T> gt)
Invoke the PUT method with a request entity that returns a response. |
|
|
put(GenericType<T> gt,
java.lang.Object requestEntity)
Invoke the PUT method with a request entity that returns a response. |
|
void |
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, acceptLanguage, acceptLanguage, 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 |
---|
public ClientResponse head()
UniformInterface
head
in interface UniformInterface
public <T> T options(java.lang.Class<T> c)
UniformInterface
options
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.
c
.public <T> T options(GenericType<T> gt)
UniformInterface
options
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.
public <T> T get(java.lang.Class<T> c)
UniformInterface
get
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.
c
.public <T> T get(GenericType<T> gt)
UniformInterface
get
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.
public void put()
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
put
in interface UniformInterface
public void put(java.lang.Object requestEntity)
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
put
in interface UniformInterface
requestEntity
- the request entity.public <T> T put(java.lang.Class<T> c)
UniformInterface
put
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.
c
.public <T> T put(GenericType<T> gt)
UniformInterface
put
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.
public <T> T put(java.lang.Class<T> c, java.lang.Object requestEntity)
UniformInterface
put
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.requestEntity
- the request entity.
c
.public <T> T put(GenericType<T> gt, java.lang.Object requestEntity)
UniformInterface
put
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.requestEntity
- the request entity.
public void post()
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
post
in interface UniformInterface
public void post(java.lang.Object requestEntity)
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
post
in interface UniformInterface
requestEntity
- the request entity.public <T> T post(java.lang.Class<T> c)
UniformInterface
post
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.
c
.public <T> T post(GenericType<T> gt)
UniformInterface
post
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.
public <T> T post(java.lang.Class<T> c, java.lang.Object requestEntity)
UniformInterface
post
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.requestEntity
- the request entity.
c
.public <T> T post(GenericType<T> gt, java.lang.Object requestEntity)
UniformInterface
post
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.requestEntity
- the request entity.
public void delete()
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
delete
in interface UniformInterface
public void delete(java.lang.Object requestEntity)
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
delete
in interface UniformInterface
requestEntity
- the request entity.public <T> T delete(java.lang.Class<T> c)
UniformInterface
delete
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.
c
.public <T> T delete(GenericType<T> gt)
UniformInterface
delete
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.
public <T> T delete(java.lang.Class<T> c, java.lang.Object requestEntity)
UniformInterface
delete
in interface UniformInterface
T
- the type of the response.c
- the type of the returned response.requestEntity
- the request entity.
c
.public <T> T delete(GenericType<T> gt, java.lang.Object requestEntity)
UniformInterface
delete
in interface UniformInterface
T
- the type of the response.gt
- the generic type of the returned response.requestEntity
- the request entity.
public void method(java.lang.String method)
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
method
in interface UniformInterface
method
- the HTTP method.public void method(java.lang.String method, java.lang.Object requestEntity)
UniformInterface
If the status code is less than 300 and a representation is present then that representation is ignored.
method
in interface UniformInterface
method
- the HTTP method.requestEntity
- the request entity.public <T> T method(java.lang.String method, java.lang.Class<T> c)
UniformInterface
method
in interface UniformInterface
T
- the type of the response.method
- the HTTP method.c
- the type of the returned response.
c
.public <T> T method(java.lang.String method, GenericType<T> gt)
UniformInterface
method
in interface UniformInterface
T
- the type of the response.method
- the HTTP method.gt
- the generic type of the returned response.
public <T> T method(java.lang.String method, java.lang.Class<T> c, java.lang.Object requestEntity)
UniformInterface
method
in interface UniformInterface
T
- the type of the response.method
- the HTTP method.c
- the type of the returned response.requestEntity
- the request entity.
c
.public <T> T method(java.lang.String method, GenericType<T> gt, java.lang.Object requestEntity)
UniformInterface
method
in interface UniformInterface
T
- the type of the response.method
- the HTTP method.gt
- the generic type of the returned response.requestEntity
- the request entity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |