|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.client.core.ClientInterceptorRepositoryImpl
org.jboss.resteasy.client.ClientRequest
org.overlord.sramp.atom.client.ClientRequest
public class ClientRequest
Extends the RESTEasy ClientRequest class in order to provide a
ClientExecutor and ResteasyProviderFactory without requiring clients to pass them in.
Additionally, this class overrides the various http methods (post, get, put) in order to implement
some error handling. These methods will throw an appropriate exception now (when possible), rather
than a less meaningful RESTEasy generic exception. When communicating with the JBoss s-ramp
implementation, this error handling should work well (it should throw an exception that also includes
the server-side root-cause stack trace). When connecting to some other s-ramp implementation, your
mileage may vary.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.resteasy.client.core.ClientInterceptorRepositoryImpl |
|---|
org.jboss.resteasy.client.core.ClientInterceptorRepositoryImpl.InterceptorType |
| Field Summary |
|---|
| Fields inherited from class org.jboss.resteasy.client.ClientRequest |
|---|
attributes, body, bodyAnnotations, bodyContentType, bodyGenericType, bodyType, executor, finalUri, followRedirects, formParameters, headers, httpMethod, linkHeader, matrixParameters, pathParameterList, pathParameters, queryParameters, uri |
| Constructor Summary | |
|---|---|
ClientRequest(String uriTemplate)
Constructor. |
|
| Method Summary | ||
|---|---|---|
org.jboss.resteasy.client.ClientResponse |
delete()
|
|
|
delete(Class<T> returnType)
|
|
org.jboss.resteasy.client.ClientResponse |
get()
|
|
|
get(Class<T> returnType)
|
|
org.jboss.resteasy.client.ClientResponse |
post()
|
|
|
post(Class<T> returnType)
|
|
org.jboss.resteasy.client.ClientResponse |
put()
|
|
|
put(Class<T> returnType)
|
|
| Methods inherited from class org.jboss.resteasy.client.ClientRequest |
|---|
accept, accept, addLink, addLink, body, body, body, body, body, clear, cookie, cookie, create, createSubsequentRequest, delete, delete, execute, followRedirects, followRedirects, formParameter, get, get, getAttributes, getBody, getBodyAnnotations, getBodyContentType, getBodyGenericType, getBodyType, getDefaultExecutor, getExecutor, getFormParameters, getHeaders, getHeadersAsObjects, getHttpMethod, getMatrixParameters, getPathParameterList, getPathParameters, getProviderFactory, getQueryParameters, getTarget, getUri, head, header, httpMethod, httpMethod, httpMethod, httpMethod, matrixParameter, options, options, options, options, overrideUri, pathParameter, pathParameters, post, post, postTarget, put, put, queryParameter, setDefaultExecutorClass, setHttpMethod, toHeaderString, toString, writeRequestBody |
| Methods inherited from class org.jboss.resteasy.client.core.ClientInterceptorRepositoryImpl |
|---|
copyClientInterceptorsTo, getExecutionInterceptorList, getExecutionInterceptors, getInterceptors, getInterceptors, getReaderInterceptorList, getReaderInterceptors, getWriterInterceptorList, getWriterInterceptors, prefixClientInterceptorsTo, registerInterceptor, setExecutionInterceptors, setExecutionInterceptors, setReaderInterceptors, setReaderInterceptors, setWriterInterceptors, setWriterInterceptors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientRequest(String uriTemplate)
uriTemplate - | Method Detail |
|---|
public <T> org.jboss.resteasy.client.ClientResponse<T> post(Class<T> returnType)
throws Exception
post in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.post(java.lang.Class)
public org.jboss.resteasy.client.ClientResponse post()
throws Exception
post in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.post()
public <T> org.jboss.resteasy.client.ClientResponse<T> get(Class<T> returnType)
throws Exception
get in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.get(java.lang.Class)
public org.jboss.resteasy.client.ClientResponse get()
throws Exception
get in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.get()
public <T> org.jboss.resteasy.client.ClientResponse<T> put(Class<T> returnType)
throws Exception
put in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.put(java.lang.Class)
public org.jboss.resteasy.client.ClientResponse put()
throws Exception
put in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.put()
public <T> org.jboss.resteasy.client.ClientResponse<T> delete(Class<T> returnType)
throws Exception
delete in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.delete(java.lang.Class)
public org.jboss.resteasy.client.ClientResponse delete()
throws Exception
delete in class org.jboss.resteasy.client.ClientRequestExceptionClientRequest.delete()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||