org.apache.myfaces.portlet
Class PortletUtil

java.lang.Object
  extended by org.apache.myfaces.portlet.PortletUtil

public final class PortletUtil
extends 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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.

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.


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.