|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.portlet.context.PortletActionContext
public class PortletActionContext
PortletActionContext. ActionContext thread local for the portlet environment.
Field Summary |
---|
Fields inherited from interface com.opensymphony.webwork.portlet.PortletActionConstants |
---|
ACTION_PARAM, DEFAULT_ACTION_FOR_MODE, DEFAULT_ACTION_NAME, ERROR_ACTION, EVENT_ACTION, EVENT_PHASE, MODE_NAMESPACE_MAP, MODE_PARAM, PHASE, PORTLET_CONFIG, PORTLET_NAMESPACE, RENDER_PHASE, REQUEST, RESPONSE |
Constructor Summary | |
---|---|
PortletActionContext()
|
Method Summary | |
---|---|
static javax.portlet.ActionRequest |
getActionRequest()
Get the ActionRequest. |
static javax.portlet.ActionResponse |
getActionResponse()
Get the ActionRequest. |
static String |
getDefaultActionForMode()
Get the default action name for the current mode. |
static Map |
getModeNamespaceMap()
Get the namespace to mode mappings. |
static Integer |
getPhase()
Get the phase that the portlet is executing in. |
static javax.portlet.PortletConfig |
getPortletConfig()
Get the PortletConfig of the portlet that is executing. |
static String |
getPortletNamespace()
Get the action namespace of the portlet. |
static javax.portlet.RenderRequest |
getRenderRequest()
Get the RenderRequest. |
static javax.portlet.RenderResponse |
getRenderResponse()
Get the RenderResponse. |
static javax.portlet.PortletRequest |
getRequest()
Get the current PortletRequest. |
static javax.portlet.PortletResponse |
getResponse()
Get the current PortletResponse |
static boolean |
isEvent()
|
static boolean |
isPortletRequest()
Check to see if the current request is a portlet request. |
static boolean |
isRender()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortletActionContext()
Method Detail |
---|
public static javax.portlet.PortletConfig getPortletConfig()
public static javax.portlet.RenderRequest getRenderRequest()
IllegalStateException
- If the method is invoked in the wrong phase.public static javax.portlet.RenderResponse getRenderResponse()
IllegalStateException
- If the method is invoked in the wrong phase.public static javax.portlet.ActionRequest getActionRequest()
IllegalStateException
- If the method is invoked in the wrong phase.public static javax.portlet.ActionResponse getActionResponse()
IllegalStateException
- If the method is invoked in the wrong phase.public static String getPortletNamespace()
portlet.xml
and xwork.xml
public static javax.portlet.PortletRequest getRequest()
public static javax.portlet.PortletResponse getResponse()
public static Integer getPhase()
PortletActionConstants.RENDER_PHASE
in render phase, and
PortletActionConstants.EVENT_PHASE
in the event phase.public static boolean isRender()
true
if the Portlet is executing in render phase.public static boolean isEvent()
true
if the Portlet is executing in the event phase.public static boolean isPortletRequest()
true
if the current request is a portlet request.public static String getDefaultActionForMode()
public static Map getModeNamespaceMap()
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |