|
||||||||||
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>
@Deprecated 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, Response.StatusType |
Constructor Summary | |
---|---|
ClientResponse()
Deprecated. |
Method Summary | ||
---|---|---|
abstract Map<String,Object> |
getAttributes()
Deprecated. Used to pass information to and between interceptors. |
|
abstract T |
getEntity()
Deprecated. Unmarshal the target entity from the response OutputStream. |
|
abstract
|
getEntity(Class<T2> type)
Deprecated. Extract the response body with the provided type information This method actually does the reading on the OutputStream. |
|
abstract
|
getEntity(Class<T2> type,
Type genericType)
Deprecated. Extract the response body with the provided type information This method actually does the reading on the OutputStream. |
|
abstract
|
getEntity(Class<T2> type,
Type genericType,
Annotation[] annotations)
Deprecated. |
|
abstract
|
getEntity(GenericType<T2> type)
Deprecated. Extract the response body with the provided type information. |
|
abstract
|
getEntity(GenericType<T2> type,
Annotation[] annotations)
Deprecated. |
|
abstract Link |
getHeaderAsLink(String headerName)
Deprecated. Header is assumed to be a URL, a Link object is created from it if it exists. |
|
abstract LinkHeader |
getLinkHeader()
Deprecated. Get the link headers of the response. |
|
abstract Link |
getLocationLink()
Deprecated. Get the Location header as a Link so you can easily execute on it. |
|
abstract MultivaluedMap<String,String> |
getResponseHeaders()
Deprecated. This method returns the same exact map as Response.getMetadata() except as a map of strings rather than objects |
|
abstract Response.Status |
getResponseStatus()
Deprecated. |
|
abstract void |
releaseConnection()
Deprecated. |
|
abstract void |
resetStream()
Deprecated. Attempts to reset the InputStream of the response. |
Methods inherited from class javax.ws.rs.core.Response |
---|
accepted, accepted, bufferEntity, close, created, fromResponse, getAllowedMethods, getCookies, getDate, getEntityTag, getHeaders, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, getMetadata, getStatus, getStatusInfo, getStringHeaders, hasEntity, hasLink, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, readEntity, readEntity, readEntity, readEntity, seeOther, serverError, status, 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<String,String> getResponseHeaders()
public abstract Response.Status getResponseStatus()
public abstract T getEntity()
getEntity
in class Response
public abstract <T2> T2 getEntity(Class<T2> type)
T2
- type
- genericType
-
public abstract <T2> T2 getEntity(Class<T2> type, Type genericType)
T2
- type
- genericType
-
public abstract <T2> T2 getEntity(Class<T2> type, Type genericType, 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, Annotation[] annotations)
T2
- type
- annotations
-
public abstract LinkHeader getLinkHeader()
public abstract Link getLocationLink()
public abstract Link getHeaderAsLink(String headerName)
headerName
-
public abstract void resetStream()
public abstract void releaseConnection()
public abstract Map<String,Object> getAttributes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |