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, temporaryRedirect
public 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 Response
public <T> T readEntity(Class<T> type) throws ProcessingException
readEntity
in class Response
ProcessingException
public <T> T readEntity(GenericType<T> entityType) throws ProcessingException
readEntity
in class Response
ProcessingException
public <T> T readEntity(Class<T> type, Annotation[] annotations) throws ProcessingException
readEntity
in class Response
ProcessingException
public <T> T readEntity(GenericType<T> entityType, Annotation[] annotations) throws ProcessingException
readEntity
in class Response
ProcessingException
public boolean bufferEntity() throws ProcessingException
bufferEntity
in class Response
ProcessingException
public void close() throws ProcessingException
close
in interface AutoCloseable
close
in class Response
ProcessingException
public MultivaluedMap<String,String> getStringHeaders()
getStringHeaders
in class Response
public String getHeaderString(String name)
getHeaderString
in class Response
public MediaType getMediaType()
getMediaType
in class Response
public Locale getLanguage()
getLanguage
in class Response
public Map<String,NewCookie> getCookies()
getCookies
in class Response
public EntityTag getEntityTag()
getEntityTag
in class Response
public Date getLastModified()
getLastModified
in class Response
public Set<String> getAllowedMethods()
getAllowedMethods
in class Response
public URI getLocation()
getLocation
in class Response
public Link.Builder getLinkBuilder(String relation)
getLinkBuilder
in class Response
public MultivaluedMap<String,Object> getMetadata()
getMetadata
in class Response
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.