|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UniformInterface
A uniform interface for invoking HTTP requests.
| 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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
void |
put(java.lang.Object requestEntity)
Invoke the PUT method with a request entity but no response. |
|
| Method Detail |
|---|
ClientResponse head()
<T> T options(java.lang.Class<T> c)
throws UniformInterfaceException
c - the type of the returned response.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
<T> T get(java.lang.Class<T> c)
throws UniformInterfaceException
c - the type of the returned response.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
void put()
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
void put(java.lang.Object requestEntity)
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
requestEntity - the request entity.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
<T> T put(java.lang.Class<T> c)
throws UniformInterfaceException
c - the type of the returned response.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
<T> T put(java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
c - the type of the returned response.requestEntity - the request entity.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
void post()
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
void post(java.lang.Object requestEntity)
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
requestEntity - the request entity.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
<T> T post(java.lang.Class<T> c)
throws UniformInterfaceException
c - the type of the returned response.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
<T> T post(java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
c - the type of the returned response.requestEntity - the request entity.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
void delete()
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
void delete(java.lang.Object requestEntity)
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
requestEntity - the request entity.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
<T> T delete(java.lang.Class<T> c)
throws UniformInterfaceException
c - the type of the returned response.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
<T> T delete(java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
c - the type of the returned response.requestEntity - the request entity.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
void method(java.lang.String method)
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
method - the HTTP method.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
void method(java.lang.String method,
java.lang.Object requestEntity)
throws UniformInterfaceException
If the status code is less than 300 and a representation is present then that representation is ignored.
method - the HTTP method.requestEntity - the request entity.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.
<T> T method(java.lang.String method,
java.lang.Class<T> c)
throws UniformInterfaceException
method - the HTTP method.c - the type of the returned response.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
<T> T method(java.lang.String method,
java.lang.Class<T> c,
java.lang.Object requestEntity)
throws UniformInterfaceException
method - the HTTP method.c - the type of the returned response.requestEntity - the request entity.
c.
UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and c is not the type
ClientResponse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||