public class ClientResponse extends InboundMessageContext implements ClientResponseContext
| Constructor and Description |
|---|
ClientResponse(ClientRequest requestContext,
Response response)
Create new Jersey client response context initialized from a JAX-RS
response. |
ClientResponse(Response.StatusType status,
ClientRequest requestContext)
Create a new Jersey client response context.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,NewCookie> |
getCookies() |
ClientRequest |
getRequestContext()
Get the associated client request context paired with this response context.
|
int |
getStatus() |
Response.StatusType |
getStatusInfo() |
void |
setStatus(int code) |
void |
setStatusInfo(Response.StatusType status) |
bufferEntity, close, getAllowedMethods, getDate, getEntityStream, getEntityTag, getHeaders, getHeaderString, getIfMatch, getIfNoneMatch, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, getQualifiedAcceptableLanguages, getQualifiedAcceptableMediaTypes, getQualifiedAcceptCharset, getQualifiedAcceptEncoding, getRequestCookies, getResponseCookies, getWorkers, hasEntity, hasLink, header, headers, headers, headers, headers, readEntity, readEntity, readEntity, readEntity, remove, setEntityStream, setWorkersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllowedMethods, getDate, getEntityStream, getEntityTag, getHeaders, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, hasEntity, hasLink, setEntityStreampublic ClientResponse(ClientRequest requestContext, Response response)
response.requestContext - associated request context.response - JAX-RS response to be used to initialize the response context.public ClientResponse(Response.StatusType status, ClientRequest requestContext)
status - response status.requestContext - associated client request context.public int getStatus()
getStatus in interface ClientResponseContextpublic void setStatus(int code)
setStatus in interface ClientResponseContextpublic void setStatusInfo(Response.StatusType status)
setStatusInfo in interface ClientResponseContextpublic Response.StatusType getStatusInfo()
getStatusInfo in interface ClientResponseContextpublic ClientRequest getRequestContext()
public Map<String,NewCookie> getCookies()
getCookies in interface ClientResponseContextCopyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.