Spring Web Flow

org.springframework.faces.webflow
Class JsfRuntimeInformation

java.lang.Object
  extended by org.springframework.faces.webflow.JsfRuntimeInformation

public class JsfRuntimeInformation
extends java.lang.Object

Helper class to provide information about the JSF runtime environment such as JSF version and implementation.

Author:
Rossen Stoyanchev, Phillip Webb

Field Summary
static int JSF_11
          Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
static int JSF_12
          Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
static int JSF_20
          JSF Version 2.0
 
Constructor Summary
JsfRuntimeInformation()
           
 
Method Summary
static boolean isAtLeastJsf12()
          Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
static boolean isAtLeastJsf20()
          Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
static boolean isLessThanJsf20()
          Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
static boolean isMyFacesPresent()
           
static boolean isPortletContext(java.lang.Object nativeContext)
          Determine if the specified context object is from portlet.
static boolean isPortletRequest(javax.faces.context.FacesContext context)
          Determine if the specified FacesContext is from a portlet request.
static boolean isPortletRequest(RequestContext context)
          Determine if the specified RequestContext is from a portlet request.
static boolean isSpringPortletPresent()
          Determines if the container has support for portlets and if Spring MVC portlet support is available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSF_11

@Deprecated
public static final int JSF_11
Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
JSF Version 1.1

See Also:
Constant Field Values

JSF_12

@Deprecated
public static final int JSF_12
Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement
JSF Version 1.2

See Also:
Constant Field Values

JSF_20

public static final int JSF_20
JSF Version 2.0

See Also:
Constant Field Values
Constructor Detail

JsfRuntimeInformation

public JsfRuntimeInformation()
Method Detail

isAtLeastJsf20

@Deprecated
public static boolean isAtLeastJsf20()
Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement


isAtLeastJsf12

@Deprecated
public static boolean isAtLeastJsf12()
Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement


isLessThanJsf20

@Deprecated
public static boolean isLessThanJsf20()
Deprecated. As of Web Flow 2.4.0 JSF 2.0 is a minimum requirement


isMyFacesPresent

public static boolean isMyFacesPresent()

isSpringPortletPresent

public static boolean isSpringPortletPresent()
Determines if the container has support for portlets and if Spring MVC portlet support is available

Returns:
true if a portlet environment is detected

isPortletRequest

public static boolean isPortletRequest(javax.faces.context.FacesContext context)
Determine if the specified FacesContext is from a portlet request.

Parameters:
context - the faces context
Returns:
true if the request is from a portlet

isPortletRequest

public static boolean isPortletRequest(RequestContext context)
Determine if the specified RequestContext is from a portlet request.

Parameters:
context - the request context
Returns:
true if the request is from a portlet

isPortletContext

public static boolean isPortletContext(java.lang.Object nativeContext)
Determine if the specified context object is from portlet.

Parameters:
nativeContext - the native context
Returns:
true if the context is from a portlet

Spring Web Flow