org.apache.myfaces.tobago.portlet
Class PortletUtils

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

public final class PortletUtils
extends java.lang.Object

Static utility class for portlet-related operations.


Method Summary
static void ensureEncoding(FacesContext facesContext)
           
static java.lang.String getViewId(FacesContext facesContext)
           
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.
static java.lang.String setViewIdForUrl(FacesContext facesContext, java.lang.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(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.

getViewId

public static java.lang.String getViewId(FacesContext facesContext)

setViewIdForUrl

public static java.lang.String setViewIdForUrl(FacesContext facesContext,
                                               java.lang.String viewId)
Returns:
The action url.

ensureEncoding

public static void ensureEncoding(FacesContext facesContext)
                           throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException


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