@Deprecated public class ClientRequest extends ClientInterceptorRepositoryImpl implements java.lang.Cloneable
(https://jcp.org/en/jsr/detail?id=339),
Invocation| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
attributes
Deprecated.
|
protected java.lang.Object |
body
Deprecated.
|
protected java.lang.annotation.Annotation[] |
bodyAnnotations
Deprecated.
|
protected javax.ws.rs.core.MediaType |
bodyContentType
Deprecated.
|
protected java.lang.reflect.Type |
bodyGenericType
Deprecated.
|
protected java.lang.Class |
bodyType
Deprecated.
|
private static java.lang.String |
defaultExecutorClasss
Deprecated.
|
protected ClientExecutor |
executor
Deprecated.
|
protected java.lang.String |
finalUri
Deprecated.
|
protected boolean |
followRedirects
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
formParameters
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> |
headers
Deprecated.
|
protected java.lang.String |
httpMethod
Deprecated.
|
protected LinkHeader |
linkHeader
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
matrixParameters
Deprecated.
|
protected java.util.List<java.lang.String> |
pathParameterList
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
pathParameters
Deprecated.
|
protected ResteasyProviderFactory |
providerFactory
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
queryParameters
Deprecated.
|
protected ResteasyUriBuilder |
uri
Deprecated.
|
| Constructor and Description |
|---|
ClientRequest(java.lang.String uriTemplate)
Deprecated.
|
ClientRequest(java.lang.String uriTemplate,
ClientExecutor executor)
Deprecated.
|
ClientRequest(javax.ws.rs.core.UriBuilder uri,
ClientExecutor executor)
Deprecated.
|
ClientRequest(javax.ws.rs.core.UriBuilder uri,
ClientExecutor executor,
ResteasyProviderFactory providerFactory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ClientRequest |
accept(javax.ws.rs.core.MediaType accepts)
Deprecated.
|
ClientRequest |
accept(java.lang.String accept)
Deprecated.
|
ClientRequest |
addLink(Link link)
Deprecated.
|
ClientRequest |
addLink(java.lang.String title,
java.lang.String rel,
java.lang.String href,
java.lang.String type)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
java.lang.Object data)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
java.lang.Object data,
java.lang.Class type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
java.lang.Object data,
GenericType genericType)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
java.lang.Object data,
java.lang.reflect.Type genericType)
Deprecated.
|
ClientRequest |
body(java.lang.String contentType,
java.lang.Object data)
Deprecated.
|
void |
clear()
Deprecated.
Clear this request's state so that it can be re-used
|
ClientRequest |
cookie(javax.ws.rs.core.Cookie cookie)
Deprecated.
|
ClientRequest |
cookie(java.lang.String cookieName,
java.lang.Object value)
Deprecated.
|
Link |
create()
Deprecated.
Automatically does POST/Create pattern.
|
ClientRequest |
createSubsequentRequest(java.net.URI uri)
Deprecated.
|
ClientResponse |
delete()
Deprecated.
|
<T> ClientResponse<T> |
delete(java.lang.Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
delete(java.lang.Class<T> returnType,
java.lang.reflect.Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
delete(GenericType type)
Deprecated.
|
ClientResponse |
execute()
Deprecated.
|
boolean |
followRedirects()
Deprecated.
|
ClientRequest |
followRedirects(boolean followRedirects)
Deprecated.
|
ClientRequest |
formParameter(java.lang.String parameterName,
java.lang.Object value)
Deprecated.
|
ClientResponse |
get()
Deprecated.
|
<T> ClientResponse<T> |
get(java.lang.Class<T> returnType)
Deprecated.
Templates the returned ClientResponse for easy access to returned entity
|
<T> ClientResponse<T> |
get(java.lang.Class<T> returnType,
java.lang.reflect.Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
get(GenericType type)
Deprecated.
|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Deprecated.
|
java.lang.Object |
getBody()
Deprecated.
|
java.lang.annotation.Annotation[] |
getBodyAnnotations()
Deprecated.
|
javax.ws.rs.core.MediaType |
getBodyContentType()
Deprecated.
|
java.lang.reflect.Type |
getBodyGenericType()
Deprecated.
|
java.lang.Class |
getBodyType()
Deprecated.
|
private static javax.ws.rs.core.UriBuilder |
getBuilder(java.lang.String uriTemplate)
Deprecated.
|
static ClientExecutor |
getDefaultExecutor()
Deprecated.
|
ClientExecutor |
getExecutor()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getFormParameters()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getHeaders()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> |
getHeadersAsObjects()
Deprecated.
|
java.lang.String |
getHttpMethod()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getMatrixParameters()
Deprecated.
|
java.util.List<java.lang.String> |
getPathParameterList()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getPathParameters()
Deprecated.
|
ResteasyProviderFactory |
getProviderFactory()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getQueryParameters()
Deprecated.
|
<T> T |
getTarget(java.lang.Class<T> returnType)
Deprecated.
Tries to automatically unmarshal to target type.
|
java.lang.String |
getUri()
Deprecated.
This method populates all path, matrix, and query parameters and saves it
internally.
|
ClientResponse |
head()
Deprecated.
|
ClientRequest |
header(java.lang.String headerName,
java.lang.Object value)
Deprecated.
|
ClientResponse |
httpMethod(java.lang.String httpMethod)
Deprecated.
|
<T> ClientResponse<T> |
httpMethod(java.lang.String method,
java.lang.Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
httpMethod(java.lang.String method,
java.lang.Class<T> returnType,
java.lang.reflect.Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
httpMethod(java.lang.String method,
GenericType type)
Deprecated.
|
ClientRequest |
matrixParameter(java.lang.String parameterName,
java.lang.Object value)
Deprecated.
|
ClientResponse |
options()
Deprecated.
|
<T> ClientResponse<T> |
options(java.lang.Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
options(java.lang.Class<T> returnType,
java.lang.reflect.Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
options(GenericType type)
Deprecated.
|
void |
overrideUri(java.net.URI uri)
Deprecated.
|
ClientRequest |
pathParameter(java.lang.String parameterName,
java.lang.Object value)
Deprecated.
|
ClientRequest |
pathParameters(java.lang.Object... values)
Deprecated.
|
ClientResponse |
post()
Deprecated.
|
<T> ClientResponse<T> |
post(java.lang.Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
post(java.lang.Class<T> returnType,
java.lang.reflect.Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
post(GenericType type)
Deprecated.
|
<T> T |
postTarget(java.lang.Class<T> returnType)
Deprecated.
|
ClientResponse |
put()
Deprecated.
|
<T> ClientResponse<T> |
put(java.lang.Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
put(java.lang.Class<T> returnType,
java.lang.reflect.Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
put(GenericType type)
Deprecated.
|
ClientRequest |
queryParameter(java.lang.String parameterName,
java.lang.Object value)
Deprecated.
|
static void |
setDefaultExecutorClass(java.lang.String classname)
Deprecated.
Set the default executor class name.
|
void |
setHttpMethod(java.lang.String httpMethod)
Deprecated.
|
protected java.lang.String |
toHeaderString(java.lang.Object object)
Deprecated.
|
protected java.lang.String |
toString(java.lang.Object object)
Deprecated.
|
void |
writeRequestBody(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream outputStream)
Deprecated.
|
copyClientInterceptorsTo, getExecutionInterceptorList, getExecutionInterceptors, getInterceptors, getInterceptors, getReaderInterceptorList, getReaderInterceptors, getWriterInterceptorList, getWriterInterceptors, prefixClientInterceptorsTo, registerInterceptor, setExecutionInterceptors, setExecutionInterceptors, setReaderInterceptors, setWriterInterceptorsprotected ResteasyProviderFactory providerFactory
protected ResteasyUriBuilder uri
protected ClientExecutor executor
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryParameters
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> formParameters
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> pathParameters
protected javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> matrixParameters
protected java.lang.Object body
protected java.lang.Class bodyType
protected java.lang.reflect.Type bodyGenericType
protected java.lang.annotation.Annotation[] bodyAnnotations
protected javax.ws.rs.core.MediaType bodyContentType
protected boolean followRedirects
protected java.lang.String httpMethod
protected java.lang.String finalUri
protected java.util.List<java.lang.String> pathParameterList
protected LinkHeader linkHeader
protected java.util.Map<java.lang.String,java.lang.Object> attributes
private static java.lang.String defaultExecutorClasss
public ClientRequest(java.lang.String uriTemplate)
public ClientRequest(java.lang.String uriTemplate,
ClientExecutor executor)
public ClientRequest(javax.ws.rs.core.UriBuilder uri,
ClientExecutor executor)
public ClientRequest(javax.ws.rs.core.UriBuilder uri,
ClientExecutor executor,
ResteasyProviderFactory providerFactory)
public static void setDefaultExecutorClass(java.lang.String classname)
classname - public static ClientExecutor getDefaultExecutor()
public void clear()
private static javax.ws.rs.core.UriBuilder getBuilder(java.lang.String uriTemplate)
public boolean followRedirects()
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public ClientRequest followRedirects(boolean followRedirects)
public ClientRequest accept(javax.ws.rs.core.MediaType accepts)
public ClientRequest accept(java.lang.String accept)
protected java.lang.String toString(java.lang.Object object)
protected java.lang.String toHeaderString(java.lang.Object object)
public ClientRequest addLink(Link link)
public ClientRequest addLink(java.lang.String title, java.lang.String rel, java.lang.String href, java.lang.String type)
public ClientRequest formParameter(java.lang.String parameterName, java.lang.Object value)
public ClientRequest queryParameter(java.lang.String parameterName, java.lang.Object value)
public ClientRequest matrixParameter(java.lang.String parameterName, java.lang.Object value)
public ClientRequest header(java.lang.String headerName, java.lang.Object value)
public ClientRequest cookie(java.lang.String cookieName, java.lang.Object value)
public ClientRequest cookie(javax.ws.rs.core.Cookie cookie)
public ClientRequest pathParameter(java.lang.String parameterName, java.lang.Object value)
public ClientRequest pathParameters(java.lang.Object... values)
public ClientRequest body(java.lang.String contentType, java.lang.Object data)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, java.lang.Object data)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, java.lang.Object data, GenericType genericType)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, java.lang.Object data, java.lang.reflect.Type genericType)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, java.lang.Object data, java.lang.Class type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
public ResteasyProviderFactory getProviderFactory()
public ClientExecutor getExecutor()
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeadersAsObjects()
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getQueryParameters()
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getFormParameters()
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getPathParameters()
public java.util.List<java.lang.String> getPathParameterList()
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getMatrixParameters()
public java.lang.Object getBody()
public java.lang.Class getBodyType()
public java.lang.reflect.Type getBodyGenericType()
public java.lang.annotation.Annotation[] getBodyAnnotations()
public javax.ws.rs.core.MediaType getBodyContentType()
public java.lang.String getHttpMethod()
public void setHttpMethod(java.lang.String httpMethod)
public ClientResponse execute() throws java.lang.Exception
java.lang.Exceptionpublic void writeRequestBody(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
java.io.OutputStream outputStream)
throws java.io.IOException
java.io.IOExceptionpublic ClientResponse get() throws java.lang.Exception
java.lang.Exceptionpublic <T> T getTarget(java.lang.Class<T> returnType)
throws java.lang.Exception
T - returnType - java.lang.Exceptionpublic <T> ClientResponse<T> get(java.lang.Class<T> returnType) throws java.lang.Exception
T - returnType - java.lang.Exceptionpublic <T> ClientResponse<T> get(java.lang.Class<T> returnType, java.lang.reflect.Type genericType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> get(GenericType type) throws java.lang.Exception
java.lang.Exceptionpublic ClientResponse head() throws java.lang.Exception
java.lang.Exceptionpublic ClientResponse put() throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> put(java.lang.Class<T> returnType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> put(java.lang.Class<T> returnType, java.lang.reflect.Type genericType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> put(GenericType type) throws java.lang.Exception
java.lang.Exceptionpublic ClientResponse post() throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> post(java.lang.Class<T> returnType) throws java.lang.Exception
java.lang.Exceptionpublic <T> T postTarget(java.lang.Class<T> returnType)
throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> post(java.lang.Class<T> returnType, java.lang.reflect.Type genericType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> post(GenericType type) throws java.lang.Exception
java.lang.Exceptionpublic Link create() throws java.lang.Exception, ClientResponseFailure
Exception, - ClientResponseFailurejava.lang.ExceptionClientResponseFailurepublic ClientResponse delete() throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> delete(java.lang.Class<T> returnType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> delete(java.lang.Class<T> returnType, java.lang.reflect.Type genericType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> delete(GenericType type) throws java.lang.Exception
java.lang.Exceptionpublic ClientResponse options() throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> options(java.lang.Class<T> returnType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> options(java.lang.Class<T> returnType, java.lang.reflect.Type genericType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> options(GenericType type) throws java.lang.Exception
java.lang.Exceptionpublic ClientResponse httpMethod(java.lang.String httpMethod) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> httpMethod(java.lang.String method, java.lang.Class<T> returnType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> httpMethod(java.lang.String method, java.lang.Class<T> returnType, java.lang.reflect.Type genericType) throws java.lang.Exception
java.lang.Exceptionpublic <T> ClientResponse<T> httpMethod(java.lang.String method, GenericType type) throws java.lang.Exception
java.lang.Exceptionpublic void overrideUri(java.net.URI uri)
public java.lang.String getUri()
throws java.lang.Exception
java.lang.Exceptionpublic ClientRequest createSubsequentRequest(java.net.URI uri)