|
||||||||||
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.
Constructor Summary | |
---|---|
PortletActionContext()
|
Method Summary | |
---|---|
static javax.portlet.ActionRequest |
getActionRequest()
Get the ActionRequest. |
static javax.portlet.ActionResponse |
getActionResponse()
Get the ActionRequest. |
static 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 |
isAction()
|
static boolean |
isEvent()
|
static boolean |
isJSR268Supported()
Whether JSR286 features are supported. |
static boolean |
isPortletRequest()
Check to see if the current request is a portlet request. |
static boolean |
isRender()
|
static boolean |
isResource()
|
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#ACTION_PHASE
in the event phase.public static boolean isRender()
true
if the Portlet is executing in render phase.public static boolean isAction()
true
if the Portlet is executing in the event phase.public static boolean isResource()
true
if the Portlet is executing in the resource phase.public static boolean isPortletRequest()
true
if the current request is a portlet request.public static ActionMapping getDefaultActionForMode()
public static java.util.Map getModeNamespaceMap()
public static javax.portlet.PortletContext getPortletContext()
public static boolean isEvent()
public static boolean isJSR268Supported()
true
if PortletContext.getMajorVersion()
returns a value greater than 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |