Methods
Modifier and Type |
Method and Description |
ClientRequest |
accept(MediaType accepts) |
ClientRequest |
accept(String accept) |
ClientRequest |
addLink(Link link) |
ClientRequest |
addLink(String title,
String rel,
String href,
String type) |
ClientRequest |
body(MediaType contentType,
Object data) |
ClientRequest |
body(MediaType contentType,
Object data,
Class type,
Type genericType,
Annotation[] annotations) |
ClientRequest |
body(MediaType contentType,
Object data,
GenericType genericType) |
ClientRequest |
body(MediaType contentType,
Object data,
Type genericType) |
ClientRequest |
body(String contentType,
Object data) |
void |
clear()
Clear this request's state so that it can be re-used
|
ClientRequest |
cookie(Cookie cookie) |
ClientRequest |
cookie(String cookieName,
Object value) |
Link |
create()
Automatically does POST/Create pattern.
|
ClientRequest |
createSubsequentRequest(URI uri) |
ClientResponse |
delete() |
<T> ClientResponse<T> |
delete(Class<T> returnType) |
<T> ClientResponse<T> |
delete(Class<T> returnType,
Type genericType) |
<T> ClientResponse<T> |
delete(GenericType type) |
ClientResponse |
execute() |
boolean |
followRedirects() |
ClientRequest |
followRedirects(boolean followRedirects) |
ClientRequest |
formParameter(String parameterName,
Object value) |
ClientResponse |
get() |
<T> ClientResponse<T> |
get(Class<T> returnType)
Templates the returned ClientResponse for easy access to returned entity
|
<T> ClientResponse<T> |
get(Class<T> returnType,
Type genericType) |
<T> ClientResponse<T> |
get(GenericType type) |
Map<String,Object> |
getAttributes() |
Object |
getBody() |
Annotation[] |
getBodyAnnotations() |
MediaType |
getBodyContentType() |
Type |
getBodyGenericType() |
Class |
getBodyType() |
static ClientExecutor |
getDefaultExecutor() |
ClientExecutor |
getExecutor() |
MultivaluedMap<String,String> |
getFormParameters() |
MultivaluedMap<String,String> |
getHeaders() |
MultivaluedMap<String,Object> |
getHeadersAsObjects() |
String |
getHttpMethod() |
MultivaluedMap<String,String> |
getMatrixParameters() |
List<String> |
getPathParameterList() |
MultivaluedMap<String,String> |
getPathParameters() |
ResteasyProviderFactory |
getProviderFactory() |
MultivaluedMap<String,String> |
getQueryParameters() |
<T> T |
getTarget(Class<T> returnType)
Tries to automatically unmarshal to target type.
|
String |
getUri()
This method populates all path, matrix, and query parameters and saves it
internally.
|
ClientResponse |
head() |
ClientRequest |
header(String headerName,
Object value) |
ClientResponse |
httpMethod(String httpMethod) |
<T> ClientResponse<T> |
httpMethod(String method,
Class<T> returnType) |
<T> ClientResponse<T> |
httpMethod(String method,
Class<T> returnType,
Type genericType) |
<T> ClientResponse<T> |
httpMethod(String method,
GenericType type) |
ClientRequest |
matrixParameter(String parameterName,
Object value) |
ClientResponse |
options() |
<T> ClientResponse<T> |
options(Class<T> returnType) |
<T> ClientResponse<T> |
options(Class<T> returnType,
Type genericType) |
<T> ClientResponse<T> |
options(GenericType type) |
void |
overrideUri(URI uri) |
ClientRequest |
pathParameter(String parameterName,
Object value) |
ClientRequest |
pathParameters(Object... values) |
ClientResponse |
post() |
<T> ClientResponse<T> |
post(Class<T> returnType) |
<T> ClientResponse<T> |
post(Class<T> returnType,
Type genericType) |
<T> ClientResponse<T> |
post(GenericType type) |
<T> T |
postTarget(Class<T> returnType) |
ClientResponse |
put() |
<T> ClientResponse<T> |
put(Class<T> returnType) |
<T> ClientResponse<T> |
put(Class<T> returnType,
Type genericType) |
<T> ClientResponse<T> |
put(GenericType type) |
ClientRequest |
queryParameter(String parameterName,
Object value) |
static void |
setDefaultExecutorClass(String classname)
Set the default executor class name.
|
void |
setHttpMethod(String httpMethod) |
protected String |
toHeaderString(Object object) |
protected String |
toString(Object object) |
void |
writeRequestBody(MultivaluedMap<String,Object> headers,
OutputStream outputStream) |