public final class PortletUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
ensureEncoding(javax.faces.context.FacesContext facesContext) |
static java.lang.Object |
getAttributeFromSessionForApplication(java.lang.Object session,
java.lang.String name) |
static java.lang.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 java.lang.String |
setViewIdForUrl(javax.faces.context.FacesContext facesContext,
java.lang.String viewId) |
public static boolean isRenderResponse(javax.faces.context.FacesContext facesContext)
facesContext
- The current FacesContext.true
if we are processing a RenderResponse,
false
otherwise.public static boolean isPortletRequest(javax.faces.context.FacesContext facesContext)
facesContext
- The current FacesContext.true
if we are running as a portlet,
false
otherwise.public static java.lang.String getViewId(javax.faces.context.FacesContext facesContext)
public static java.lang.String setViewIdForUrl(javax.faces.context.FacesContext facesContext, java.lang.String viewId)
public static void ensureEncoding(javax.faces.context.FacesContext facesContext) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static java.lang.Object getAttributeFromSessionForApplication(java.lang.Object session, java.lang.String name)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.