public final class WebResource.Builder extends PartialRequestBuilder<WebResource.Builder> implements UniformInterface
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 |
|---|---|
void |
delete()
Invoke the DELETE method with no request entity or response.
|
<T> T |
delete(Class<T> c)
Invoke the DELETE method with no request entity that returns a response.
|
<T> T |
delete(Class<T> c,
Object requestEntity)
Invoke the DELETE method with a request entity that returns a response.
|
<T> T |
delete(GenericType<T> gt)
Invoke the DELETE method with a request entity that returns a response.
|
<T> T |
delete(GenericType<T> gt,
Object requestEntity)
Invoke the DELETE method with a request entity that returns a response.
|
void |
delete(Object requestEntity)
Invoke the DELETE method with a request entity but no response.
|
<T> T |
get(Class<T> c)
Invoke the GET method.
|
<T> T |
get(GenericType<T> gt)
Invoke the GET method.
|
ClientResponse |
head()
Invoke the HEAD method.
|
void |
method(String method)
Invoke a HTTP method with no request entity or response.
|
<T> T |
method(String method,
Class<T> c)
Invoke a HTTP method with no request entity that returns a response.
|
<T> T |
method(String method,
Class<T> c,
Object requestEntity)
Invoke a HTTP method with a request entity that returns a response.
|
<T> T |
method(String method,
GenericType<T> gt)
Invoke a HTTP method with no request entity that returns a response.
|
<T> T |
method(String method,
GenericType<T> gt,
Object requestEntity)
Invoke a HTTP method with a request entity that returns a response.
|
void |
method(String method,
Object requestEntity)
Invoke a HTTP method with a request entity but no response.
|
<T> T |
options(Class<T> c)
Invoke the OPTIONS method.
|
<T> T |
options(GenericType<T> gt)
Invoke the OPTIONS method.
|
void |
post()
Invoke the POST method with no request entity or response.
|
<T> T |
post(Class<T> c)
Invoke the POST method with no request entity that returns a response.
|
<T> T |
post(Class<T> c,
Object requestEntity)
Invoke the POST method with a request entity that returns a response.
|
<T> T |
post(GenericType<T> gt)
Invoke the POST method with a request entity that returns a response.
|
<T> T |
post(GenericType<T> gt,
Object requestEntity)
Invoke the POST method with a request entity that returns a response.
|
void |
post(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.
|
<T> T |
put(Class<T> c)
Invoke the PUT method with no request entity that returns a response.
|
<T> T |
put(Class<T> c,
Object requestEntity)
Invoke the PUT method with a request entity that returns a response.
|
<T> T |
put(GenericType<T> gt)
Invoke the PUT method with a request entity that returns a response.
|
<T> T |
put(GenericType<T> gt,
Object requestEntity)
Invoke the PUT method with a request entity that returns a response.
|
void |
put(Object requestEntity)
Invoke the PUT method with a request entity but no response.
|
accept, accept, acceptLanguage, acceptLanguage, cookie, entity, entity, entity, header, type, typepublic ClientResponse head()
UniformInterfacehead in interface UniformInterfacepublic <T> T options(Class<T> c) throws UniformInterfaceException
UniformInterfaceoptions in interface UniformInterfaceT - the type of the response.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.public <T> T options(GenericType<T> gt) throws UniformInterfaceException
UniformInterfaceoptions in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public <T> T get(Class<T> c) throws UniformInterfaceException
UniformInterfaceget in interface UniformInterfaceT - the type of the response.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.public <T> T get(GenericType<T> gt) throws UniformInterfaceException
UniformInterfaceget in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public void put()
throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
put in interface UniformInterfaceUniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public void put(Object requestEntity) throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
put in interface UniformInterfacerequestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public <T> T put(Class<T> c) throws UniformInterfaceException
UniformInterfaceput in interface UniformInterfaceT - the type of the response.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.public <T> T put(GenericType<T> gt) throws UniformInterfaceException
UniformInterfaceput in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public <T> T put(Class<T> c, Object requestEntity) throws UniformInterfaceException
UniformInterfaceput in interface UniformInterfaceT - the type of the response.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.public <T> T put(GenericType<T> gt, Object requestEntity) throws UniformInterfaceException
UniformInterfaceput in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public void post()
throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
post in interface UniformInterfaceUniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public void post(Object requestEntity) throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
post in interface UniformInterfacerequestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public <T> T post(Class<T> c) throws UniformInterfaceException
UniformInterfacepost in interface UniformInterfaceT - the type of the response.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.public <T> T post(GenericType<T> gt) throws UniformInterfaceException
UniformInterfacepost in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public <T> T post(Class<T> c, Object requestEntity) throws UniformInterfaceException
UniformInterfacepost in interface UniformInterfaceT - the type of the response.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.public <T> T post(GenericType<T> gt, Object requestEntity) throws UniformInterfaceException
UniformInterfacepost in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public void delete()
throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
delete in interface UniformInterfaceUniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public void delete(Object requestEntity) throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
delete in interface UniformInterfacerequestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public <T> T delete(Class<T> c) throws UniformInterfaceException
UniformInterfacedelete in interface UniformInterfaceT - the type of the response.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.public <T> T delete(GenericType<T> gt) throws UniformInterfaceException
UniformInterfacedelete in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public <T> T delete(Class<T> c, Object requestEntity) throws UniformInterfaceException
UniformInterfacedelete in interface UniformInterfaceT - the type of the response.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.public <T> T delete(GenericType<T> gt, Object requestEntity) throws UniformInterfaceException
UniformInterfacedelete in interface UniformInterfaceT - the type of the response.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public void method(String method) throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
method in interface UniformInterfacemethod - the HTTP method.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public void method(String method, Object requestEntity) throws UniformInterfaceException
UniformInterfaceIf the status code is less than 300 and a representation is present then that representation is ignored.
method in interface UniformInterfacemethod - the HTTP method.requestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300.public <T> T method(String method, Class<T> c) throws UniformInterfaceException
UniformInterfacemethod in interface UniformInterfaceT - the type of the response.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.public <T> T method(String method, GenericType<T> gt) throws UniformInterfaceException
UniformInterfacemethod in interface UniformInterfaceT - the type of the response.method - the HTTP method.gt - the generic type of the returned response.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.public <T> T method(String method, Class<T> c, Object requestEntity) throws UniformInterfaceException
UniformInterfacemethod in interface UniformInterfaceT - the type of the response.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.public <T> T method(String method, GenericType<T> gt, Object requestEntity) throws UniformInterfaceException
UniformInterfacemethod in interface UniformInterfaceT - the type of the response.method - the HTTP method.gt - the generic type of the returned response.requestEntity - the request entity.UniformInterfaceException - if the status of the HTTP response is
greater than or equal to 300 and gt does not
represent the type ClientResponse.Copyright © 2013 Oracle Corporation. All Rights Reserved.