Class ContainerResponseContextImpl
- java.lang.Object
-
- org.jboss.resteasy.core.interception.ContainerResponseContextImpl
-
- All Implemented Interfaces:
javax.ws.rs.container.ContainerResponseContext
public class ContainerResponseContextImpl extends java.lang.Object implements javax.ws.rs.container.ContainerResponseContext
- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpResponse
httpResponse
protected BuiltResponse
jaxrsResponse
protected HttpRequest
request
-
Constructor Summary
Constructors Constructor Description ContainerResponseContextImpl(HttpRequest request, HttpResponse httpResponse, BuiltResponse serverResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAllowedMethods()
java.util.Map<java.lang.String,javax.ws.rs.core.NewCookie>
getCookies()
java.util.Date
getDate()
java.lang.Object
getEntity()
java.lang.annotation.Annotation[]
getEntityAnnotations()
java.lang.Class<?>
getEntityClass()
java.io.OutputStream
getEntityStream()
javax.ws.rs.core.EntityTag
getEntityTag()
java.lang.reflect.Type
getEntityType()
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object>
getHeaders()
java.lang.String
getHeaderString(java.lang.String name)
HttpResponse
getHttpResponse()
BuiltResponse
getJaxrsResponse()
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()
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)
void
setEntity(java.lang.Object entity)
void
setEntity(java.lang.Object entity, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
void
setEntityStream(java.io.OutputStream entityStream)
void
setStatus(int code)
void
setStatusInfo(javax.ws.rs.core.Response.StatusType statusInfo)
-
-
-
Field Detail
-
request
protected final HttpRequest request
-
httpResponse
protected final HttpResponse httpResponse
-
jaxrsResponse
protected final BuiltResponse jaxrsResponse
-
-
Constructor Detail
-
ContainerResponseContextImpl
public ContainerResponseContextImpl(HttpRequest request, HttpResponse httpResponse, BuiltResponse serverResponse)
-
-
Method Detail
-
getJaxrsResponse
public BuiltResponse getJaxrsResponse()
-
getHttpResponse
public HttpResponse getHttpResponse()
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfacejavax.ws.rs.container.ContainerResponseContext
-
setStatus
public void setStatus(int code)
- Specified by:
setStatus
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getStatusInfo
public javax.ws.rs.core.Response.StatusType getStatusInfo()
- Specified by:
getStatusInfo
in interfacejavax.ws.rs.container.ContainerResponseContext
-
setStatusInfo
public void setStatusInfo(javax.ws.rs.core.Response.StatusType statusInfo)
- Specified by:
setStatusInfo
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getEntityClass
public java.lang.Class<?> getEntityClass()
- Specified by:
getEntityClass
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getEntityType
public java.lang.reflect.Type getEntityType()
- Specified by:
getEntityType
in interfacejavax.ws.rs.container.ContainerResponseContext
-
setEntity
public void setEntity(java.lang.Object entity)
- Specified by:
setEntity
in interfacejavax.ws.rs.container.ContainerResponseContext
-
setEntity
public void setEntity(java.lang.Object entity, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
setEntity
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
- Specified by:
getHeaders
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getAllowedMethods
public java.util.Set<java.lang.String> getAllowedMethods()
- Specified by:
getAllowedMethods
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getDate
public java.util.Date getDate()
- Specified by:
getDate
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLanguage
public java.util.Locale getLanguage()
- Specified by:
getLanguage
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLength
public int getLength()
- Specified by:
getLength
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getMediaType
public javax.ws.rs.core.MediaType getMediaType()
- Specified by:
getMediaType
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getCookies
public java.util.Map<java.lang.String,javax.ws.rs.core.NewCookie> getCookies()
- Specified by:
getCookies
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getEntityTag
public javax.ws.rs.core.EntityTag getEntityTag()
- Specified by:
getEntityTag
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLastModified
public java.util.Date getLastModified()
- Specified by:
getLastModified
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLocation
public java.net.URI getLocation()
- Specified by:
getLocation
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLinks
public java.util.Set<javax.ws.rs.core.Link> getLinks()
- Specified by:
getLinks
in interfacejavax.ws.rs.container.ContainerResponseContext
-
hasLink
public boolean hasLink(java.lang.String relation)
- Specified by:
hasLink
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLink
public javax.ws.rs.core.Link getLink(java.lang.String relation)
- Specified by:
getLink
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getLinkBuilder
public javax.ws.rs.core.Link.Builder getLinkBuilder(java.lang.String relation)
- Specified by:
getLinkBuilder
in interfacejavax.ws.rs.container.ContainerResponseContext
-
hasEntity
public boolean hasEntity()
- Specified by:
hasEntity
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getEntity
public java.lang.Object getEntity()
- Specified by:
getEntity
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getEntityStream
public java.io.OutputStream getEntityStream()
- Specified by:
getEntityStream
in interfacejavax.ws.rs.container.ContainerResponseContext
-
setEntityStream
public void setEntityStream(java.io.OutputStream entityStream)
- Specified by:
setEntityStream
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getEntityAnnotations
public java.lang.annotation.Annotation[] getEntityAnnotations()
- Specified by:
getEntityAnnotations
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getStringHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getStringHeaders()
- Specified by:
getStringHeaders
in interfacejavax.ws.rs.container.ContainerResponseContext
-
getHeaderString
public java.lang.String getHeaderString(java.lang.String name)
- Specified by:
getHeaderString
in interfacejavax.ws.rs.container.ContainerResponseContext
-
-