@Deprecated public class ClientRequest extends ClientInterceptorRepositoryImpl implements Cloneable
Invocation
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
attributes
Deprecated.
|
protected Object |
body
Deprecated.
|
protected Annotation[] |
bodyAnnotations
Deprecated.
|
protected javax.ws.rs.core.MediaType |
bodyContentType
Deprecated.
|
protected Type |
bodyGenericType
Deprecated.
|
protected Class |
bodyType
Deprecated.
|
protected ClientExecutor |
executor
Deprecated.
|
protected String |
finalUri
Deprecated.
|
protected boolean |
followRedirects
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
formParameters
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<String,Object> |
headers
Deprecated.
|
protected String |
httpMethod
Deprecated.
|
protected LinkHeader |
linkHeader
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
matrixParameters
Deprecated.
|
protected List<String> |
pathParameterList
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
pathParameters
Deprecated.
|
protected ResteasyProviderFactory |
providerFactory
Deprecated.
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
queryParameters
Deprecated.
|
protected ResteasyUriBuilder |
uri
Deprecated.
|
Constructor and Description |
---|
ClientRequest(String uriTemplate)
Deprecated.
|
ClientRequest(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(String accept)
Deprecated.
|
ClientRequest |
addLink(Link link)
Deprecated.
|
ClientRequest |
addLink(String title,
String rel,
String href,
String type)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
Object data)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
Object data,
Class type,
Type genericType,
Annotation[] annotations)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
Object data,
GenericType genericType)
Deprecated.
|
ClientRequest |
body(javax.ws.rs.core.MediaType contentType,
Object data,
Type genericType)
Deprecated.
|
ClientRequest |
body(String contentType,
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(String cookieName,
Object value)
Deprecated.
|
Link |
create()
Deprecated.
Automatically does POST/Create pattern.
|
ClientRequest |
createSubsequentRequest(URI uri)
Deprecated.
|
ClientResponse |
delete()
Deprecated.
|
<T> ClientResponse<T> |
delete(Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
delete(Class<T> returnType,
Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
delete(GenericType type)
Deprecated.
|
ClientResponse |
execute()
Deprecated.
|
boolean |
followRedirects()
Deprecated.
|
ClientRequest |
followRedirects(boolean followRedirects)
Deprecated.
|
ClientRequest |
formParameter(String parameterName,
Object value)
Deprecated.
|
ClientResponse |
get()
Deprecated.
|
<T> ClientResponse<T> |
get(Class<T> returnType)
Deprecated.
Templates the returned ClientResponse for easy access to returned entity
|
<T> ClientResponse<T> |
get(Class<T> returnType,
Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
get(GenericType type)
Deprecated.
|
Map<String,Object> |
getAttributes()
Deprecated.
|
Object |
getBody()
Deprecated.
|
Annotation[] |
getBodyAnnotations()
Deprecated.
|
javax.ws.rs.core.MediaType |
getBodyContentType()
Deprecated.
|
Type |
getBodyGenericType()
Deprecated.
|
Class |
getBodyType()
Deprecated.
|
static ClientExecutor |
getDefaultExecutor()
Deprecated.
|
ClientExecutor |
getExecutor()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getFormParameters()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<String,Object> |
getHeadersAsObjects()
Deprecated.
|
String |
getHttpMethod()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getMatrixParameters()
Deprecated.
|
List<String> |
getPathParameterList()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getPathParameters()
Deprecated.
|
ResteasyProviderFactory |
getProviderFactory()
Deprecated.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getQueryParameters()
Deprecated.
|
<T> T |
getTarget(Class<T> returnType)
Deprecated.
Tries to automatically unmarshal to target type.
|
String |
getUri()
Deprecated.
This method populates all path, matrix, and query parameters and saves it
internally.
|
ClientResponse |
head()
Deprecated.
|
ClientRequest |
header(String headerName,
Object value)
Deprecated.
|
ClientResponse |
httpMethod(String httpMethod)
Deprecated.
|
<T> ClientResponse<T> |
httpMethod(String method,
Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
httpMethod(String method,
Class<T> returnType,
Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
httpMethod(String method,
GenericType type)
Deprecated.
|
ClientRequest |
matrixParameter(String parameterName,
Object value)
Deprecated.
|
ClientResponse |
options()
Deprecated.
|
<T> ClientResponse<T> |
options(Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
options(Class<T> returnType,
Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
options(GenericType type)
Deprecated.
|
void |
overrideUri(URI uri)
Deprecated.
|
ClientRequest |
pathParameter(String parameterName,
Object value)
Deprecated.
|
ClientRequest |
pathParameters(Object... values)
Deprecated.
|
ClientResponse |
post()
Deprecated.
|
<T> ClientResponse<T> |
post(Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
post(Class<T> returnType,
Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
post(GenericType type)
Deprecated.
|
<T> T |
postTarget(Class<T> returnType)
Deprecated.
|
ClientResponse |
put()
Deprecated.
|
<T> ClientResponse<T> |
put(Class<T> returnType)
Deprecated.
|
<T> ClientResponse<T> |
put(Class<T> returnType,
Type genericType)
Deprecated.
|
<T> ClientResponse<T> |
put(GenericType type)
Deprecated.
|
ClientRequest |
queryParameter(String parameterName,
Object value)
Deprecated.
|
static void |
setDefaultExecutorClass(String classname)
Deprecated.
Set the default executor class name.
|
void |
setHttpMethod(String httpMethod)
Deprecated.
|
protected String |
toHeaderString(Object object)
Deprecated.
|
protected String |
toString(Object object)
Deprecated.
|
void |
writeRequestBody(javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream outputStream)
Deprecated.
|
copyClientInterceptorsTo, getExecutionInterceptorList, getExecutionInterceptors, getInterceptors, getInterceptors, getReaderInterceptorList, getReaderInterceptors, getWriterInterceptorList, getWriterInterceptors, prefixClientInterceptorsTo, registerInterceptor, setExecutionInterceptors, setExecutionInterceptors, setReaderInterceptors, setWriterInterceptors
protected ResteasyProviderFactory providerFactory
protected ResteasyUriBuilder uri
protected ClientExecutor executor
protected javax.ws.rs.core.MultivaluedMap<String,String> queryParameters
protected javax.ws.rs.core.MultivaluedMap<String,String> matrixParameters
protected Object body
protected Class bodyType
protected Type bodyGenericType
protected Annotation[] bodyAnnotations
protected javax.ws.rs.core.MediaType bodyContentType
protected boolean followRedirects
protected String httpMethod
protected String finalUri
protected LinkHeader linkHeader
public ClientRequest(String uriTemplate)
public ClientRequest(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(String classname)
classname
- public static ClientExecutor getDefaultExecutor()
public void clear()
public boolean followRedirects()
public ClientRequest followRedirects(boolean followRedirects)
public ClientRequest accept(javax.ws.rs.core.MediaType accepts)
public ClientRequest accept(String accept)
public ClientRequest addLink(Link link)
public ClientRequest addLink(String title, String rel, String href, String type)
public ClientRequest formParameter(String parameterName, Object value)
public ClientRequest queryParameter(String parameterName, Object value)
public ClientRequest matrixParameter(String parameterName, Object value)
public ClientRequest header(String headerName, Object value)
public ClientRequest cookie(String cookieName, Object value)
public ClientRequest cookie(javax.ws.rs.core.Cookie cookie)
public ClientRequest pathParameter(String parameterName, Object value)
public ClientRequest pathParameters(Object... values)
public ClientRequest body(String contentType, Object data)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, Object data)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, Object data, GenericType genericType)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, Object data, Type genericType)
public ClientRequest body(javax.ws.rs.core.MediaType contentType, Object data, Class type, Type genericType, Annotation[] annotations)
public ResteasyProviderFactory getProviderFactory()
public ClientExecutor getExecutor()
public javax.ws.rs.core.MultivaluedMap<String,String> getHeaders()
public javax.ws.rs.core.MultivaluedMap<String,Object> getHeadersAsObjects()
public javax.ws.rs.core.MultivaluedMap<String,String> getQueryParameters()
public javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
public javax.ws.rs.core.MultivaluedMap<String,String> getPathParameters()
public javax.ws.rs.core.MultivaluedMap<String,String> getMatrixParameters()
public Object getBody()
public Class getBodyType()
public Type getBodyGenericType()
public Annotation[] getBodyAnnotations()
public javax.ws.rs.core.MediaType getBodyContentType()
public String getHttpMethod()
public void setHttpMethod(String httpMethod)
public ClientResponse execute() throws Exception
Exception
public void writeRequestBody(javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream outputStream) throws IOException
IOException
public ClientResponse get() throws Exception
Exception
public <T> T getTarget(Class<T> returnType) throws Exception
T
- returnType
- Exception
public <T> ClientResponse<T> get(Class<T> returnType) throws Exception
T
- returnType
- Exception
public <T> ClientResponse<T> get(Class<T> returnType, Type genericType) throws Exception
Exception
public <T> ClientResponse<T> get(GenericType type) throws Exception
Exception
public ClientResponse head() throws Exception
Exception
public ClientResponse put() throws Exception
Exception
public <T> ClientResponse<T> put(Class<T> returnType) throws Exception
Exception
public <T> ClientResponse<T> put(Class<T> returnType, Type genericType) throws Exception
Exception
public <T> ClientResponse<T> put(GenericType type) throws Exception
Exception
public ClientResponse post() throws Exception
Exception
public <T> ClientResponse<T> post(Class<T> returnType) throws Exception
Exception
public <T> T postTarget(Class<T> returnType) throws Exception
Exception
public <T> ClientResponse<T> post(Class<T> returnType, Type genericType) throws Exception
Exception
public <T> ClientResponse<T> post(GenericType type) throws Exception
Exception
public Link create() throws Exception, ClientResponseFailure
Exception
ClientResponseFailure
public ClientResponse delete() throws Exception
Exception
public <T> ClientResponse<T> delete(Class<T> returnType) throws Exception
Exception
public <T> ClientResponse<T> delete(Class<T> returnType, Type genericType) throws Exception
Exception
public <T> ClientResponse<T> delete(GenericType type) throws Exception
Exception
public ClientResponse options() throws Exception
Exception
public <T> ClientResponse<T> options(Class<T> returnType) throws Exception
Exception
public <T> ClientResponse<T> options(Class<T> returnType, Type genericType) throws Exception
Exception
public <T> ClientResponse<T> options(GenericType type) throws Exception
Exception
public ClientResponse httpMethod(String httpMethod) throws Exception
Exception
public <T> ClientResponse<T> httpMethod(String method, Class<T> returnType) throws Exception
Exception
public <T> ClientResponse<T> httpMethod(String method, Class<T> returnType, Type genericType) throws Exception
Exception
public <T> ClientResponse<T> httpMethod(String method, GenericType type) throws Exception
Exception
public void overrideUri(URI uri)
public String getUri() throws Exception
Exception
public ClientRequest createSubsequentRequest(URI uri)
Copyright © 2018 JBoss by Red Hat. All rights reserved.