|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.portlet.context.PortletActionContext
public class PortletActionContext
PortletActionContext. ActionContext thread local for the portlet environment.
Field Summary |
---|
Fields inherited from interface org.apache.struts2.portlet.PortletActionConstants |
---|
ACTION_PARAM, ACTION_RESET, DEFAULT_ACTION_FOR_MODE, DEFAULT_ACTION_NAME, DEFAULT_DISPATCHER_SERVLET_NAME, DISPATCH_TO, ERROR_ACTION, EVENT_ACTION, EVENT_PHASE, MODE_NAMESPACE_MAP, MODE_PARAM, PHASE, PORTLET_CONFIG, PORTLET_NAMESPACE, RENDER_DIRECT_LOCATION, RENDER_PHASE, REQUEST, RESPONSE, STACK_FROM_EVENT_PHASE |
Constructor Summary | |
---|---|
PortletActionContext()
|
Method Summary | |
---|---|
static javax.portlet.ActionRequest |
getActionRequest()
Get the ActionRequest. |
static javax.portlet.ActionResponse |
getActionResponse()
Get the ActionRequest. |
static org.apache.struts2.dispatcher.mapper.ActionMapping |
getDefaultActionForMode()
Get the default action mapping for the current mode. |
static java.util.Map |
getModeNamespaceMap()
Get the namespace to mode mappings. |
static java.lang.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 javax.portlet.PortletContext |
getPortletContext()
Get the portlet context. |
static java.lang.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()
java.lang.IllegalStateException
- If the method is invoked in the wrong phase.public static javax.portlet.RenderResponse getRenderResponse()
java.lang.IllegalStateException
- If the method is invoked in the wrong phase.public static javax.portlet.ActionRequest getActionRequest()
java.lang.IllegalStateException
- If the method is invoked in the wrong phase.public static javax.portlet.ActionResponse getActionResponse()
java.lang.IllegalStateException
- If the method is invoked in the wrong phase.public static java.lang.String getPortletNamespace()
portlet.xml
and struts.xml
public static javax.portlet.PortletRequest getRequest()
public static javax.portlet.PortletResponse getResponse()
public static java.lang.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 org.apache.struts2.dispatcher.mapper.ActionMapping getDefaultActionForMode()
public static java.util.Map getModeNamespaceMap()
public static javax.portlet.PortletContext getPortletContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |