public class OutboundJaxrsResponse extends Response
underlying
outbound message context.| Modifier and Type | Class and Description |
|---|---|
static class |
OutboundJaxrsResponse.Builder
Outbound JAX-RS
Response.ResponseBuilder implementation. |
Response.ResponseBuilder, Response.Status, Response.StatusType| Constructor and Description |
|---|
OutboundJaxrsResponse(Response.StatusType status,
OutboundMessageContext context)
Create new outbound JAX-RS response message instance.
|
accepted, accepted, created, fromResponse, getHeaders, noContent, notAcceptable, notModified, notModified, notModified, ok, ok, ok, ok, ok, seeOther, serverError, status, status, status, status, temporaryRedirectpublic OutboundJaxrsResponse(Response.StatusType status, OutboundMessageContext context)
status - response status.context - underlying outbound message context.public static OutboundJaxrsResponse from(Response response, Configuration configuration)
response - response instance to from.configuration - the related client/server side Configuration. Can be null.OutboundJaxrsResponse instance.@Deprecated public static OutboundJaxrsResponse from(Response response)
response - response instance to from.OutboundJaxrsResponse instance.from(Response, Configuration)public OutboundMessageContext getContext()
public Response.StatusType getStatusInfo()
getStatusInfo in class Responsepublic <T> T readEntity(Class<T> type) throws ProcessingException
readEntity in class ResponseProcessingExceptionpublic <T> T readEntity(GenericType<T> entityType) throws ProcessingException
readEntity in class ResponseProcessingExceptionpublic <T> T readEntity(Class<T> type, Annotation[] annotations) throws ProcessingException
readEntity in class ResponseProcessingExceptionpublic <T> T readEntity(GenericType<T> entityType, Annotation[] annotations) throws ProcessingException
readEntity in class ResponseProcessingExceptionpublic boolean bufferEntity()
throws ProcessingException
bufferEntity in class ResponseProcessingExceptionpublic void close()
throws ProcessingException
close in interface AutoCloseableclose in class ResponseProcessingExceptionpublic MultivaluedMap<String,String> getStringHeaders()
getStringHeaders in class Responsepublic String getHeaderString(String name)
getHeaderString in class Responsepublic MediaType getMediaType()
getMediaType in class Responsepublic Locale getLanguage()
getLanguage in class Responsepublic Map<String,NewCookie> getCookies()
getCookies in class Responsepublic EntityTag getEntityTag()
getEntityTag in class Responsepublic Date getLastModified()
getLastModified in class Responsepublic Set<String> getAllowedMethods()
getAllowedMethods in class Responsepublic URI getLocation()
getLocation in class Responsepublic Link.Builder getLinkBuilder(String relation)
getLinkBuilder in class Responsepublic MultivaluedMap<String,Object> getMetadata()
getMetadata in class ResponseCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.