org.apache.cocoon.callstack.environment
Class CallFrameHelper

java.lang.Object
  extended by org.apache.cocoon.callstack.environment.CallFrameHelper

public abstract class CallFrameHelper
extends Object

A set of constants and methods to access the content of the call frame.

The call frame is used to pass information about the Request, Response and Context of the calling environment to components used while the call frame is active.

Version:
$Id: CallFrameHelper.html 1422810 2012-12-17 09:13:50Z ilgrosso $

Field Summary
static String CONTEXT_OBJECT
          Key for the environment ServletContext in the call frame.
static String REQUEST_OBJECT
          Key for the environment HttpServletRequest in the call frame.
static String RESPONSE_OBJECT
          Key for the environment HttpServletResponse in the call frame.
 
Constructor Summary
CallFrameHelper()
           
 
Method Summary
static javax.servlet.ServletContext getContext()
           
static javax.servlet.http.HttpServletRequest getRequest()
           
static javax.servlet.http.HttpServletResponse getResponse()
           
static void setContext(javax.servlet.ServletContext context)
           
static void setEnvironment(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context)
           
static void setRequest(javax.servlet.http.HttpServletRequest request)
           
static void setResponse(javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REQUEST_OBJECT

public static final String REQUEST_OBJECT
Key for the environment HttpServletRequest in the call frame.

See Also:
Constant Field Values

RESPONSE_OBJECT

public static final String RESPONSE_OBJECT
Key for the environment HttpServletResponse in the call frame.

See Also:
Constant Field Values

CONTEXT_OBJECT

public static final String CONTEXT_OBJECT
Key for the environment ServletContext in the call frame.

See Also:
Constant Field Values
Constructor Detail

CallFrameHelper

public CallFrameHelper()
Method Detail

setEnvironment

public static final void setEnvironment(javax.servlet.http.HttpServletRequest request,
                                        javax.servlet.http.HttpServletResponse response,
                                        javax.servlet.ServletContext context)

getRequest

public static final javax.servlet.http.HttpServletRequest getRequest()

setRequest

public static final void setRequest(javax.servlet.http.HttpServletRequest request)

getResponse

public static final javax.servlet.http.HttpServletResponse getResponse()

setResponse

public static final void setResponse(javax.servlet.http.HttpServletResponse response)

getContext

public static final javax.servlet.ServletContext getContext()

setContext

public static final void setContext(javax.servlet.ServletContext context)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.