javax.portlet.faces
Class BridgeUtil

java.lang.Object
  extended by javax.portlet.faces.BridgeUtil

public class BridgeUtil
extends java.lang.Object

Utility class designed to make it easy for Faces subsystems including the bridge itself to determine whether this request is running in a portlet container and/or which portlet request phase it is executing in.


Constructor Summary
BridgeUtil()
           
 
Method Summary
static Bridge.PortletPhase getPortletRequestPhase()
          Return describes the portlet request phase currently being executed.
static boolean isPortletRequest()
          Indicates whether the current request is executing in the portlet container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BridgeUtil

public BridgeUtil()
Method Detail

isPortletRequest

public static boolean isPortletRequest()
Indicates whether the current request is executing in the portlet container. If it returns true the request is a portlet request, otherwise it is not.


getPortletRequestPhase

public static Bridge.PortletPhase getPortletRequestPhase()
Return describes the portlet request phase currently being executed. If null then this request is not being executed in a portlet container -- note this should never be called unless running within a Faces lifecyle in a portlet request.



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.