org.apache.struts2.impl
Class RequestContextImpl
java.lang.Object
org.apache.struts2.impl.RequestContextImpl
- All Implemented Interfaces:
- org.apache.struts2.spi.RequestContext
public class RequestContextImpl
- extends java.lang.Object
- implements org.apache.struts2.spi.RequestContext
Field Summary |
static java.util.concurrent.Callable<java.lang.String> |
ILLEGAL_PROCEED
|
Constructor Summary |
RequestContextImpl(com.opensymphony.xwork2.ActionContext xworkContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ILLEGAL_PROCEED
public static final java.util.concurrent.Callable<java.lang.String> ILLEGAL_PROCEED
RequestContextImpl
public RequestContextImpl(com.opensymphony.xwork2.ActionContext xworkContext)
getActionContext
public org.apache.struts2.spi.ActionContext getActionContext()
- Specified by:
getActionContext
in interface org.apache.struts2.spi.RequestContext
getAction
public java.lang.Object getAction()
- Specified by:
getAction
in interface org.apache.struts2.spi.RequestContext
getParameterMap
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
- Specified by:
getParameterMap
in interface org.apache.struts2.spi.RequestContext
getAttributeMap
public java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
- Specified by:
getAttributeMap
in interface org.apache.struts2.spi.RequestContext
getSessionMap
public java.util.Map<java.lang.String,java.lang.Object> getSessionMap()
- Specified by:
getSessionMap
in interface org.apache.struts2.spi.RequestContext
getApplicationMap
public java.util.Map<java.lang.String,java.lang.Object> getApplicationMap()
- Specified by:
getApplicationMap
in interface org.apache.struts2.spi.RequestContext
findCookiesForName
public java.util.List<javax.servlet.http.Cookie> findCookiesForName(java.lang.String name)
- Specified by:
findCookiesForName
in interface org.apache.struts2.spi.RequestContext
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface org.apache.struts2.spi.RequestContext
setLocale
public void setLocale(java.util.Locale locale)
- Specified by:
setLocale
in interface org.apache.struts2.spi.RequestContext
getMessages
public org.apache.struts2.Messages getMessages()
- Specified by:
getMessages
in interface org.apache.struts2.spi.RequestContext
getServletRequest
public javax.servlet.http.HttpServletRequest getServletRequest()
- Specified by:
getServletRequest
in interface org.apache.struts2.spi.RequestContext
getServletResponse
public javax.servlet.http.HttpServletResponse getServletResponse()
- Specified by:
getServletResponse
in interface org.apache.struts2.spi.RequestContext
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interface org.apache.struts2.spi.RequestContext
getValueStack
public org.apache.struts2.spi.ValueStack getValueStack()
- Specified by:
getValueStack
in interface org.apache.struts2.spi.RequestContext
proceed
public java.lang.String proceed()
throws java.lang.Exception
- Specified by:
proceed
in interface org.apache.struts2.spi.RequestContext
- Throws:
java.lang.Exception
setProceed
public void setProceed(java.util.concurrent.Callable<java.lang.String> proceed)
getProceed
public java.util.concurrent.Callable<java.lang.String> getProceed()
callInContext
public static java.lang.String callInContext(com.opensymphony.xwork2.ActionInvocation invocation,
java.util.concurrent.Callable<java.lang.String> callable)
throws java.lang.Exception
- Creates RequestContext if necessary. Always creates a new ActionContext and restores an existing ActionContext
when finished.
- Throws:
java.lang.Exception
get
public static RequestContextImpl get()
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.