@Deprecated public abstract class ClientResponse<T> extends javax.ws.rs.core.Response
Response
,
ClientResponse
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 javax.ws.rs.core.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 javax.ws.rs.core.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, status, temporaryRedirect
public abstract javax.ws.rs.core.MultivaluedMap<String,String> getResponseHeaders()
public abstract javax.ws.rs.core.Response.Status getResponseStatus()
public abstract T getEntity()
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.
getEntity
in class javax.ws.rs.core.Response
public abstract <T2> T2 getEntity(Class<T2> type)
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(Class<T2> type, Type 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
- 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)
For example:
List <String > list = response.getEntity(new GenericType <List <String >>() {});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)
All Link objects returned will automatically have the same ClientExecutor as the request.
headerName
- public abstract void resetStream()
public abstract void releaseConnection()
Copyright © 2018 JBoss by Red Hat. All rights reserved.