org.apache.myfaces.portlet

Class PortletUtil


public class PortletUtil
extends java.lang.Object

Static utility class for portlet-related operations.
Author:
Stan Silvert

Field Summary

static String
PORTLET_REQUEST_FLAG
This flag is imbedded in the request.

Method Summary

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

Field Details

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 Details

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.