Methods Summary |
---|
public static javax.portlet.ActionRequest | getActionRequest()Get the ActionRequest. Can only be invoked in the event phase.
if (!isEvent()) {
throw new IllegalStateException(
"ActionRequest cannot be obtained in render phase");
}
return (ActionRequest) getContext().get(REQUEST);
|
public static javax.portlet.ActionResponse | getActionResponse()Get the ActionRequest. Can only be invoked in the event phase.
if (!isEvent()) {
throw new IllegalStateException(
"ActionResponse cannot be obtained in render phase");
}
return (ActionResponse) getContext().get(RESPONSE);
|
private static com.opensymphony.xwork2.ActionContext | getContext()
return ActionContext.getContext();
|
public static org.apache.struts2.dispatcher.mapper.ActionMapping | getDefaultActionForMode()Get the default action mapping for the current mode.
return (ActionMapping)getContext().get(DEFAULT_ACTION_FOR_MODE);
|
public static java.util.Map | getModeNamespaceMap()Get the namespace to mode mappings.
return (Map)getContext().get(MODE_NAMESPACE_MAP);
|
public static java.lang.Integer | getPhase()Get the phase that the portlet is executing in.
return (Integer) getContext().get(PHASE);
|
public static javax.portlet.PortletConfig | getPortletConfig()Get the PortletConfig of the portlet that is executing.
return (PortletConfig) getContext().get(PORTLET_CONFIG);
|
public static java.lang.String | getPortletNamespace()Get the action namespace of the portlet. Used to organize actions for multiple portlets in
the same portlet application.
return (String)getContext().get(PORTLET_NAMESPACE);
|
public static javax.portlet.RenderRequest | getRenderRequest()Get the RenderRequest. Can only be invoked in the render phase.
if (!isRender()) {
throw new IllegalStateException(
"RenderRequest cannot be obtained in event phase");
}
return (RenderRequest) getContext().get(REQUEST);
|
public static javax.portlet.RenderResponse | getRenderResponse()Get the RenderResponse. Can only be invoked in the render phase.
if (!isRender()) {
throw new IllegalStateException(
"RenderResponse cannot be obtained in event phase");
}
return (RenderResponse) getContext().get(RESPONSE);
|
public static javax.portlet.PortletRequest | getRequest()Get the current PortletRequest.
return (PortletRequest) getContext().get(REQUEST);
|
public static javax.portlet.PortletResponse | getResponse()Get the current PortletResponse
return (PortletResponse) getContext().get(RESPONSE);
|
public static boolean | isEvent()
return PortletActionConstants.EVENT_PHASE.equals(getPhase());
|
public static boolean | isPortletRequest()Check to see if the current request is a portlet request.
return getRequest() != null;
|
public static boolean | isRender()
return PortletActionConstants.RENDER_PHASE.equals(getPhase());
|