public class ActionContext extends Object
ServletDispatcher,
ClientServletDispatcher| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_NAME |
static String |
APPLICATION |
static String |
LOCALE |
static String |
PARAMETERS |
static String |
PRINCIPAL |
static String |
SESSION |
static String |
SINGLE_VALUE_PARAMETERS |
| Constructor and Description |
|---|
ActionContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object key)
Returns a value that is stored in the current ActionContext buy doing a lookup using the value's key.
|
static Map |
getApplication()
Returns a Map of the ServletContext when in a servlet environment or a generic application level Map otherwise.
|
Map |
getApplicationImpl() |
static ActionContext |
getContext()
Returns the ActionContext specific to the current thread.
|
static Locale |
getLocale()
Returns the Locale of the current request in a servlet environment or the default Locale in other environments.
|
Locale |
getLocaleImpl() |
static MultiPartRequestWrapper |
getMultiPartRequest()
Return multipart request for HttpServletRequest.
|
MultiPartRequestWrapper |
getMultiPartRequestImpl() |
static String |
getName()
Returns the name of the current Action.
|
String |
getNameImpl() |
static Map |
getParameters()
Returns a Map of the HttpServletRequest parameters when in a servlet environment or a generic Map of parameters
otherwise.
|
Map |
getParametersImpl() |
static Principal |
getPrincipal()
Returns the current user's security Principal.
|
Principal |
getPrincipalImpl() |
static javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HttpServletRequest object when in a servlet environment.
|
javax.servlet.http.HttpServletRequest |
getRequestImpl() |
static javax.servlet.http.HttpServletResponse |
getResponse()
Returns the HttpServletResponse when in a servlet environment.
|
javax.servlet.http.HttpServletResponse |
getResponseImpl() |
static javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext when in a servlet environment.
|
javax.servlet.ServletContext |
getServletContextImpl() |
static Map |
getSession()
Returns the HttpSession when in a servlet environment or a generic session map otherwise.
|
Map |
getSessionImpl() |
static Map |
getSingleValueParameters()
Get the current ActionContext parameters.
|
Map |
getSingleValueParametersImpl() |
Map |
getTable() |
static ValueStack |
getValueStack()
Returns the ValueStack specific to the current thread.
|
ValueStack |
getValueStackImpl() |
void |
put(Object key,
Object value)
Stores a value in the current ActionContext.
|
static void |
setApplication(Map application)
Set an application level Map.
|
void |
setApplicationImpl(Map application) |
static void |
setContext(ActionContext aContext) |
static void |
setLocale(Locale locale)
Set the current locale.
|
void |
setLocaleImpl(Locale locale) |
static void |
setName(String name)
Stores the name of the current Action in the ActionContext.
|
void |
setNameImpl(String name) |
static void |
setParameters(Map parameters)
Set a Map of parameters.
|
void |
setParametersImpl(Map parameters) |
static void |
setPrincipal(Principal principal)
Set the current user's security Principal.
|
void |
setPrincipalImpl(Principal principal) |
static void |
setRequest(javax.servlet.http.HttpServletRequest request)
Set the HttpServletRequest.
|
void |
setRequestImpl(javax.servlet.http.HttpServletRequest request) |
static void |
setResponse(javax.servlet.http.HttpServletResponse response)
Set the HttpServletResponse.
|
void |
setResponseImpl(javax.servlet.http.HttpServletResponse response) |
static void |
setServletContext(javax.servlet.ServletContext context)
Set the ServletContext.
|
void |
setServletContextImpl(javax.servlet.ServletContext context) |
static void |
setSession(Map session)
Set a session Map.
|
void |
setSessionImpl(Map session) |
static void |
setSingleValueParameters(Map parameters)
Set a Map of single value parameters.
|
void |
setSingleValueParametersImpl(Map parameters) |
void |
setTable(Map lookup) |
static void |
setValueStack(ValueStack valueStack)
Set the ValueStack.
|
void |
setValueStackImpl(ValueStack valueStack) |
public static final String ACTION_NAME
public static final String SESSION
public static final String APPLICATION
public static final String PARAMETERS
public static final String SINGLE_VALUE_PARAMETERS
public static final String LOCALE
public static final String PRINCIPAL
public static void setContext(ActionContext aContext)
public static ActionContext getContext()
public Map getTable()
public void setTable(Map lookup)
public void put(Object key, Object value)
key - The key of the value.value - The value to be stored.public Object get(Object key)
key - The key used to find the value.public static String getName()
public String getNameImpl()
public static void setName(String name)
name - The name of the current action.public void setNameImpl(String name)
public static Locale getLocale()
public Locale getLocaleImpl()
public static void setLocale(Locale locale)
locale - current localepublic void setLocaleImpl(Locale locale)
public static Map getSession()
public Map getSessionImpl()
public static void setSession(Map session)
public void setSessionImpl(Map session)
public static Map getApplication()
public Map getApplicationImpl()
public static void setApplication(Map application)
public void setApplicationImpl(Map application)
public static Map getParameters()
public Map getParametersImpl()
public static void setParameters(Map parameters)
parameters - The parameters for the current action context.public void setParametersImpl(Map parameters)
public static Map getSingleValueParameters()
public Map getSingleValueParametersImpl()
public static void setSingleValueParameters(Map parameters)
parameters - for the current action context.public void setSingleValueParametersImpl(Map parameters)
public static Principal getPrincipal()
public Principal getPrincipalImpl()
public static void setPrincipal(Principal principal)
principal - the current user's security Principalpublic void setPrincipalImpl(Principal principal)
public static MultiPartRequestWrapper getMultiPartRequest()
public MultiPartRequestWrapper getMultiPartRequestImpl()
public static javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletRequest getRequestImpl()
public static void setRequest(javax.servlet.http.HttpServletRequest request)
public void setRequestImpl(javax.servlet.http.HttpServletRequest request)
public static javax.servlet.http.HttpServletResponse getResponse()
public javax.servlet.http.HttpServletResponse getResponseImpl()
public static void setResponse(javax.servlet.http.HttpServletResponse response)
public void setResponseImpl(javax.servlet.http.HttpServletResponse response)
public static javax.servlet.ServletContext getServletContext()
public javax.servlet.ServletContext getServletContextImpl()
public static void setServletContext(javax.servlet.ServletContext context)
public void setServletContextImpl(javax.servlet.ServletContext context)
public static ValueStack getValueStack()
public ValueStack getValueStackImpl()
public static void setValueStack(ValueStack valueStack)
valueStack - public void setValueStackImpl(ValueStack valueStack)
Copyright © 2013 Atlassian. All Rights Reserved.