public class PortletActionContext extends Object
| Constructor and Description | 
|---|
| PortletActionContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 Map<javax.portlet.PortletMode,ActionMapping> | getModeActionMap()Get the mode to default action mappings. | 
| static Map<javax.portlet.PortletMode,String> | getModeNamespaceMap()Get the namespace to mode mappings. | 
| static PortletPhase | 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 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.ResourceResponse | getResourceResponse()Get the ResourceResponse. | 
| static javax.portlet.PortletResponse | getResponse()Get the current PortletResponse | 
| static boolean | isJSR268Supported()Whether JSR286 features are supported. | 
| static boolean | isPortletRequest()Check to see if the current request is a portlet request. | 
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 javax.portlet.ResourceResponse getResourceResponse()
IllegalStateException - If the method is invoked in the wrong phase.public static String getPortletNamespace()
portlet.xml and struts.xmlpublic static javax.portlet.PortletRequest getRequest()
public static javax.portlet.PortletResponse getResponse()
public static PortletPhase getPhase()
PortletPhase.RENDER_PHASE in render phase, and
         PortletPhase.ACTION_PHASE in the event phase.public static boolean isPortletRequest()
true if the current request is a portlet request.public static ActionMapping getDefaultActionForMode()
public static Map<javax.portlet.PortletMode,String> getModeNamespaceMap()
public static Map<javax.portlet.PortletMode,ActionMapping> getModeActionMap()
public static javax.portlet.PortletContext getPortletContext()
public static boolean isJSR268Supported()
true if PortletContext.getMajorVersion() returns a value greater than 1Copyright © 2000–2025 Apache Software Foundation. All rights reserved.