org.apache.struts2.impl
Class RequestContextImpl

java.lang.Object
  extended by 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)
           
 
Method Summary
static java.lang.String callInContext(com.opensymphony.xwork2.ActionInvocation invocation, java.util.concurrent.Callable<java.lang.String> callable)
          Creates RequestContext if necessary.
 java.util.List<javax.servlet.http.Cookie> findCookiesForName(java.lang.String name)
           
static RequestContextImpl get()
           
 java.lang.Object getAction()
           
 org.apache.struts2.spi.ActionContext getActionContext()
           
 java.util.Map<java.lang.String,java.lang.Object> getApplicationMap()
           
 java.util.Map<java.lang.String,java.lang.Object> getAttributeMap()
           
 java.util.Locale getLocale()
           
 org.apache.struts2.Messages getMessages()
           
 java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
           
 java.util.concurrent.Callable<java.lang.String> getProceed()
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.http.HttpServletRequest getServletRequest()
           
 javax.servlet.http.HttpServletResponse getServletResponse()
           
 java.util.Map<java.lang.String,java.lang.Object> getSessionMap()
           
 org.apache.struts2.spi.ValueStack getValueStack()
           
 java.lang.String proceed()
           
 void setLocale(java.util.Locale locale)
           
 void setProceed(java.util.concurrent.Callable<java.lang.String> proceed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ILLEGAL_PROCEED

public static final java.util.concurrent.Callable<java.lang.String> ILLEGAL_PROCEED
Constructor Detail

RequestContextImpl

public RequestContextImpl(com.opensymphony.xwork2.ActionContext xworkContext)
Method Detail

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.