public class OutboundJaxrsResponse
extends javax.ws.rs.core.Response
underlying
outbound message context.| Modifier and Type | Class and Description |
|---|---|
static class |
OutboundJaxrsResponse.Builder
Outbound JAX-RS
Response.ResponseBuilder implementation. |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
buffered |
private boolean |
closed |
private OutboundMessageContext |
context |
private javax.ws.rs.core.Response.StatusType |
status |
| Constructor and Description |
|---|
OutboundJaxrsResponse(javax.ws.rs.core.Response.StatusType status,
OutboundMessageContext context)
Create new outbound JAX-RS response message instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bufferEntity() |
void |
close() |
static OutboundJaxrsResponse |
from(javax.ws.rs.core.Response response)
Get an OutboundJaxrsResponse instance for a given JAX-RS response.
|
java.util.Set<java.lang.String> |
getAllowedMethods() |
OutboundMessageContext |
getContext()
Get the underlying outbound message context.
|
java.util.Map<java.lang.String,javax.ws.rs.core.NewCookie> |
getCookies() |
java.util.Date |
getDate() |
java.lang.Object |
getEntity() |
javax.ws.rs.core.EntityTag |
getEntityTag() |
java.lang.String |
getHeaderString(java.lang.String name) |
java.util.Locale |
getLanguage() |
java.util.Date |
getLastModified() |
int |
getLength() |
javax.ws.rs.core.Link |
getLink(java.lang.String relation) |
javax.ws.rs.core.Link.Builder |
getLinkBuilder(java.lang.String relation) |
java.util.Set<javax.ws.rs.core.Link> |
getLinks() |
java.net.URI |
getLocation() |
javax.ws.rs.core.MediaType |
getMediaType() |
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> |
getMetadata() |
int |
getStatus() |
javax.ws.rs.core.Response.StatusType |
getStatusInfo() |
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> |
getStringHeaders() |
boolean |
hasEntity() |
boolean |
hasLink(java.lang.String relation) |
<T> T |
readEntity(java.lang.Class<T> type) |
<T> T |
readEntity(java.lang.Class<T> type,
java.lang.annotation.Annotation[] annotations) |
<T> T |
readEntity(javax.ws.rs.core.GenericType<T> entityType) |
<T> T |
readEntity(javax.ws.rs.core.GenericType<T> entityType,
java.lang.annotation.Annotation[] annotations) |
java.lang.String |
toString() |
private final OutboundMessageContext context
private final javax.ws.rs.core.Response.StatusType status
private boolean closed
private boolean buffered
public OutboundJaxrsResponse(javax.ws.rs.core.Response.StatusType status,
OutboundMessageContext context)
status - response status.context - underlying outbound message context.public static OutboundJaxrsResponse from(javax.ws.rs.core.Response response)
response - response instance to from.OutboundJaxrsResponse instance.public OutboundMessageContext getContext()
public int getStatus()
getStatus in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.Response.StatusType getStatusInfo()
getStatusInfo in class javax.ws.rs.core.Responsepublic java.lang.Object getEntity()
getEntity in class javax.ws.rs.core.Responsepublic <T> T readEntity(java.lang.Class<T> type)
throws javax.ws.rs.ProcessingException
readEntity in class javax.ws.rs.core.Responsejavax.ws.rs.ProcessingExceptionpublic <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType)
throws javax.ws.rs.ProcessingException
readEntity in class javax.ws.rs.core.Responsejavax.ws.rs.ProcessingExceptionpublic <T> T readEntity(java.lang.Class<T> type,
java.lang.annotation.Annotation[] annotations)
throws javax.ws.rs.ProcessingException
readEntity in class javax.ws.rs.core.Responsejavax.ws.rs.ProcessingExceptionpublic <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType,
java.lang.annotation.Annotation[] annotations)
throws javax.ws.rs.ProcessingException
readEntity in class javax.ws.rs.core.Responsejavax.ws.rs.ProcessingExceptionpublic boolean hasEntity()
hasEntity in class javax.ws.rs.core.Responsepublic boolean bufferEntity()
throws javax.ws.rs.ProcessingException
bufferEntity in class javax.ws.rs.core.Responsejavax.ws.rs.ProcessingExceptionpublic void close()
throws javax.ws.rs.ProcessingException
close in class javax.ws.rs.core.Responsejavax.ws.rs.ProcessingExceptionpublic javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getStringHeaders()
getStringHeaders in class javax.ws.rs.core.Responsepublic java.lang.String getHeaderString(java.lang.String name)
getHeaderString in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.MediaType getMediaType()
getMediaType in class javax.ws.rs.core.Responsepublic java.util.Locale getLanguage()
getLanguage in class javax.ws.rs.core.Responsepublic int getLength()
getLength in class javax.ws.rs.core.Responsepublic java.util.Map<java.lang.String,javax.ws.rs.core.NewCookie> getCookies()
getCookies in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.EntityTag getEntityTag()
getEntityTag in class javax.ws.rs.core.Responsepublic java.util.Date getDate()
getDate in class javax.ws.rs.core.Responsepublic java.util.Date getLastModified()
getLastModified in class javax.ws.rs.core.Responsepublic java.util.Set<java.lang.String> getAllowedMethods()
getAllowedMethods in class javax.ws.rs.core.Responsepublic java.net.URI getLocation()
getLocation in class javax.ws.rs.core.Responsepublic java.util.Set<javax.ws.rs.core.Link> getLinks()
getLinks in class javax.ws.rs.core.Responsepublic boolean hasLink(java.lang.String relation)
hasLink in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.Link getLink(java.lang.String relation)
getLink in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.Link.Builder getLinkBuilder(java.lang.String relation)
getLinkBuilder in class javax.ws.rs.core.Responsepublic javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getMetadata()
getMetadata in class javax.ws.rs.core.Responsepublic java.lang.String toString()
toString in class java.lang.Object