@Deprecated public abstract class ClientResponse<T> extends Response
Response
,
ClientResponse
Response.ResponseBuilder, Response.Status, Response.StatusType
Constructor and Description |
---|
ClientResponse()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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 <T2> T2 |
getEntity(Class<T2> type)
Deprecated.
Extract the response body with the provided type information
This method actually does the reading on the OutputStream.
|
abstract <T2> T2 |
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 <T2> T2 |
getEntity(Class<T2> type,
Type genericType,
Annotation[] annotations)
Deprecated.
|
abstract <T2> T2 |
getEntity(GenericType<T2> type)
Deprecated.
Extract the response body with the provided type information.
|
abstract <T2> T2 |
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.
|
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
public abstract MultivaluedMap<String,String> getResponseHeaders()
public abstract Response.Status getResponseStatus()
public abstract T getEntity()
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.
T2
- type
- 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()
Copyright © 2017 JBoss by Red Hat. All rights reserved.