org.apache.myfaces.portlet

Class PortletUtil

public class PortletUtil extends Object

Static utility class for portlet-related operations.

Author: Stan Silvert

Field Summary
static StringPORTLET_REQUEST_FLAG
This flag is imbedded in the request.
Method Summary
static booleanisPortletRequest(FacesContext facesContext)
Determine if we are running as a portlet.
static booleanisRenderResponse(FacesContext facesContext)
Determine if we are processing a portlet RenderResponse.

Field Detail

PORTLET_REQUEST_FLAG

public static final String PORTLET_REQUEST_FLAG
This flag is imbedded in the request. It signifies to MyFaces that the request is coming from a portlet.

Method Detail

isPortletRequest

public static boolean isPortletRequest(FacesContext facesContext)
Determine if we are running as a portlet.

Parameters: facesContext The current FacesContext.

Returns: true if we are running as a portlet, false otherwise.

isRenderResponse

public static boolean isRenderResponse(FacesContext facesContext)
Determine if we are processing a portlet RenderResponse.

Parameters: facesContext The current FacesContext.

Returns: true if we are processing a RenderResponse, false otherwise.