com.opensymphony.webwork
Class ServletActionContext

java.lang.Object
  extended bycom.opensymphony.xwork.ActionContext
      extended bycom.opensymphony.webwork.ServletActionContext
All Implemented Interfaces:
WebWorkStatics

public class ServletActionContext
extends com.opensymphony.xwork.ActionContext
implements WebWorkStatics

Web-specific context information for actions. This class subclasses ActionContext which provides access to things like the action name, value stack, etc. This class adds access to web objects like servlet parameters, request attributes and things like the HTTP session.

Author:
Erik Beeson, Bill Lynch (docs)

Field Summary
static String WEBWORK_VALUESTACK_KEY
           
 
Fields inherited from class com.opensymphony.xwork.ActionContext
ACTION_INVOCATION, ACTION_NAME, APPLICATION, CONVERSION_ERRORS, LOCALE, PARAMETERS, SESSION, TYPE_CONVERTER, VALUE_STACK
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER
 
Method Summary
static PageContext getPageContext()
          Returns the HTTP page context.
static HttpServletRequest getRequest()
          Gets the HTTP servlet request object.
static HttpServletResponse getResponse()
          Gets the HTTP servlet response object.
static ServletConfig getServletConfig()
          Gets the servlet config object.
static ServletContext getServletContext()
          Gets the servlet context.
static ServletDispatcher getServletDispatcher()
          Gets the servlet dispatcher.
static void setRequest(HttpServletRequest request)
          Sets the HTTP servlet request object.
static void setResponse(HttpServletResponse response)
          Sets the HTTP servlet response object.
static void setServletConfig(ServletConfig config)
          Set the servlet config object.
 
Methods inherited from class com.opensymphony.xwork.ActionContext
get, getActionInvocation, getApplication, getContext, getContextMap, getConversionErrors, getLocale, getName, getParameters, getSession, getValueStack, put, setActionInvocation, setApplication, setContext, setContextMap, setConversionErrors, setLocale, setName, setParameters, setSession, setValueStack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEBWORK_VALUESTACK_KEY

public static final String WEBWORK_VALUESTACK_KEY
See Also:
Constant Field Values
Method Detail

getPageContext

public static PageContext getPageContext()
Returns the HTTP page context.

Returns:
the HTTP page context.

setRequest

public static void setRequest(HttpServletRequest request)
Sets the HTTP servlet request object.

Parameters:
request - the HTTP servlet request object.

getRequest

public static HttpServletRequest getRequest()
Gets the HTTP servlet request object.

Returns:
the HTTP servlet request object.

setResponse

public static void setResponse(HttpServletResponse response)
Sets the HTTP servlet response object.

Parameters:
response - the HTTP servlet response object.

getResponse

public static HttpServletResponse getResponse()
Gets the HTTP servlet response object.

Returns:
the HTTP servlet response object.

setServletConfig

public static void setServletConfig(ServletConfig config)
Set the servlet config object.

Parameters:
config - the servlet config object.

getServletConfig

public static ServletConfig getServletConfig()
Gets the servlet config object.

Returns:
the servlet config object.

getServletContext

public static ServletContext getServletContext()
Gets the servlet context.

Returns:
the servlet context.

getServletDispatcher

public static ServletDispatcher getServletDispatcher()
Gets the servlet dispatcher.

Returns:
the servlet dispatcher.

WebWork Project Page