org.apache.myfaces.tobago.portlet
Class PortletUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.portlet.PortletUtils

public final class PortletUtils
extends Object

Static utility class for portlet-related operations.


Method Summary
static void ensureEncoding(javax.faces.context.FacesContext facesContext)
           
static Object getAttributeFromSessionForApplication(Object session, String name)
           
static String getViewId(javax.faces.context.FacesContext facesContext)
           
static boolean isPortletRequest(javax.faces.context.FacesContext facesContext)
          Determine if we are running as a portlet.
static boolean isRenderResponse(javax.faces.context.FacesContext facesContext)
          Determine if we are processing a portlet RenderResponse.
static String setViewIdForUrl(javax.faces.context.FacesContext facesContext, String viewId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isRenderResponse

public static boolean isRenderResponse(javax.faces.context.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(javax.faces.context.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.

getViewId

public static String getViewId(javax.faces.context.FacesContext facesContext)

setViewIdForUrl

public static String setViewIdForUrl(javax.faces.context.FacesContext facesContext,
                                     String viewId)
Returns:
The action url.

ensureEncoding

public static void ensureEncoding(javax.faces.context.FacesContext facesContext)
                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getAttributeFromSessionForApplication

public static Object getAttributeFromSessionForApplication(Object session,
                                                           String name)


Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.