org.glassfish.jersey.server
Class JerseyContainerResponseContext

java.lang.Object
  extended by org.glassfish.jersey.message.internal.OutboundMessageContext
      extended by org.glassfish.jersey.server.JerseyContainerResponseContext
All Implemented Interfaces:
ContainerResponseContext

public class JerseyContainerResponseContext
extends OutboundMessageContext
implements ContainerResponseContext

Jersey container response context.

Author:
Marek Potociar (marek.potociar at oracle.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.glassfish.jersey.message.internal.OutboundMessageContext
OutboundMessageContext.StreamProvider
 
Constructor Summary
JerseyContainerResponseContext(JerseyContainerRequestContext requestContext, Response response)
          Create a new Jersey container response context.
 
Method Summary
 java.util.Map<java.lang.String,NewCookie> getCookies()
           
 JerseyContainerRequestContext getRequestContext()
          Get the associated container request context paired with this response context.
 int getStatus()
           
 Response.StatusType getStatusInfo()
           
 void setStatus(int code)
           
 void setStatusInfo(Response.StatusType status)
           
 
Methods inherited from class org.glassfish.jersey.message.internal.OutboundMessageContext
commitStream, getAcceptableLanguages, getAcceptableMediaTypes, getAllowedMethods, getDate, getEntity, getEntityAnnotations, getEntityClass, getEntityStream, getEntityTag, getEntityType, getHeaders, getHeaderString, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, getRequestCookies, getResponseCookies, hasEntity, hasLink, header, headers, headers, headers, remove, replace, replace, replaceAll, setEntity, setEntity, setEntity, setEntity, setEntity, setEntityAnnotations, setEntityStream, setEntityType, setMediaType, setStreamProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ws.rs.container.ContainerResponseContext
getAllowedMethods, getDate, getEntity, getEntityAnnotations, getEntityClass, getEntityStream, getEntityTag, getEntityType, getHeaders, getLanguage, getLastModified, getLength, getLink, getLinkBuilder, getLinks, getLocation, getMediaType, hasEntity, hasLink, setEntity, setEntity, setEntityStream
 

Constructor Detail

JerseyContainerResponseContext

public JerseyContainerResponseContext(JerseyContainerRequestContext requestContext,
                                      Response response)
Create a new Jersey container response context.

Parameters:
requestContext - associated container request context.
response - response instance initializing the response context.
Method Detail

getStatus

public int getStatus()
Specified by:
getStatus in interface ContainerResponseContext

setStatus

public void setStatus(int code)
Specified by:
setStatus in interface ContainerResponseContext

setStatusInfo

public void setStatusInfo(Response.StatusType status)
Specified by:
setStatusInfo in interface ContainerResponseContext

getStatusInfo

public Response.StatusType getStatusInfo()
Specified by:
getStatusInfo in interface ContainerResponseContext

getRequestContext

public JerseyContainerRequestContext getRequestContext()
Get the associated container request context paired with this response context.

Returns:
associated container request context.

getCookies

public java.util.Map<java.lang.String,NewCookie> getCookies()
Specified by:
getCookies in interface ContainerResponseContext


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.