com.liferay.faces.bridge.container
Class PortletContainerDetector

java.lang.Object
  extended by com.liferay.faces.bridge.container.PortletContainerDetector

public class PortletContainerDetector
extends Object

Author:
Neil Griffin

Constructor Summary
PortletContainerDetector()
           
 
Method Summary
static boolean isLiferayPortletRequest(javax.portlet.PortletRequest portletRequest)
          Determines whether or not the specified PortletRequest is one created by Liferay Portal.
static boolean isPlutoPortletRequest(javax.portlet.PortletRequest portletRequest)
          Determines whether or not the specified PortletRequest is one created by Liferay Portal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContainerDetector

public PortletContainerDetector()
Method Detail

isLiferayPortletRequest

public static boolean isLiferayPortletRequest(javax.portlet.PortletRequest portletRequest)
Determines whether or not the specified PortletRequest is one created by Liferay Portal. If the specified PortletRequest is an instance of PortletRequestWrapper then it will work with the wrapped PortletRequest.

Parameters:
portletRequest - The current PortletRequest.
Returns:
true if the specified portletRequest was created by Liferay Portal.

isPlutoPortletRequest

public static boolean isPlutoPortletRequest(javax.portlet.PortletRequest portletRequest)
Determines whether or not the specified PortletRequest is one created by Liferay Portal. If the specified PortletRequest is an instance of PortletRequestWrapper then it will work with the wrapped PortletRequest.

Parameters:
portletRequest - The current PortletRequest.
Returns:
true if the specified portletRequest was created by Pluto.


Copyright © 2014 Liferay, Inc.. All Rights Reserved.