|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.ws.rs.core.Response org.jboss.resteasy.client.ClientResponse<T>
public abstract class ClientResponse<T>
Response extension for the RESTEasy client framework. Use this, or Response in your client proxy interface method return type declarations if you want access to the response entity as well as status and header information.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.ws.rs.core.Response |
---|
Response.ResponseBuilder, Response.Status |
Constructor Summary | |
---|---|
ClientResponse()
|
Method Summary | ||
---|---|---|
abstract T |
getEntity()
Unmarshal the target entity from the response OutputStream. |
|
abstract
|
getEntity(java.lang.Class<T2> type)
Extract the response body with the provided type information This method actually does the reading on the OutputStream. |
|
abstract
|
getEntity(java.lang.Class<T2> type,
java.lang.reflect.Type genericType)
Extract the response body with the provided type information This method actually does the reading on the OutputStream. |
|
abstract
|
getEntity(java.lang.Class<T2> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
|
|
abstract
|
getEntity(GenericType<T2> type)
Extract the response body with the provided type information. |
|
abstract
|
getEntity(GenericType<T2> type,
java.lang.annotation.Annotation[] annotations)
|
|
abstract MultivaluedMap<java.lang.String,java.lang.String> |
getHeaders()
This method returns the same exact map as Response.getMetadata() except as a map of strings rather than objects |
|
abstract Response.Status |
getResponseStatus()
|
|
abstract void |
releaseConnection()
|
Methods inherited from class javax.ws.rs.core.Response |
---|
created, fromResponse, getMetadata, getStatus, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, temporaryRedirect |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientResponse()
Method Detail |
---|
public abstract MultivaluedMap<java.lang.String,java.lang.String> getHeaders()
public abstract Response.Status getResponseStatus()
public abstract T getEntity()
getEntity
in class Response
MessageBodyWriter
public abstract <T2> T2 getEntity(java.lang.Class<T2> type)
T2
- type
- genericType
-
public abstract <T2> T2 getEntity(java.lang.Class<T2> type, java.lang.reflect.Type genericType)
T2
- type
- genericType
-
public abstract <T2> T2 getEntity(java.lang.Class<T2> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
T2
- type
- genericType
- annotations
-
public abstract <T2> T2 getEntity(GenericType<T2> type)
Listlist = response.getEntity(new GenericType () {}); This method actually does the reading on the OutputStream. It will only do the read once. Afterwards, it will cache the result and return the cached result.
- Type Parameters:
T2
-- Parameters:
type
-- Returns:
public abstract <T2> T2 getEntity(GenericType<T2> type, java.lang.annotation.Annotation[] annotations)
T2
- type
- annotations
-
public abstract void releaseConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |