org.apache.myfaces.util
Class ContainerUtils

java.lang.Object
  extended by org.apache.myfaces.util.ContainerUtils

public class ContainerUtils
extends Object

Utilities for determining the current container and for the unified expression language.


Constructor Summary
ContainerUtils()
           
 
Method Summary
static boolean isJsp21(javax.servlet.ServletContext context)
          Determines whether we're running in a Servlet 2.5/JSP 2.1 environment.
static boolean isRunningOnGoogleAppEngine(ExternalContext externalContext)
           
static boolean isRunningOnGoogleAppEngine(javax.servlet.ServletContext servletContext)
          Returns true if running on Google App Engine (both production and development environment).
static boolean isValueReference(String value)
          Return true if the specified string contains an EL expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerUtils

public ContainerUtils()
Method Detail

isJsp21

public static boolean isJsp21(javax.servlet.ServletContext context)
Determines whether we're running in a Servlet 2.5/JSP 2.1 environment.

Returns:
true if we're running in a JSP 2.1 environment, false otherwise

isValueReference

public static boolean isValueReference(String value)
Return true if the specified string contains an EL expression.

NOTICE This method is just a copy of UIComponentTag#isValueReference(String), but it's required because the class UIComponentTag depends on a JSP 2.1 container (for example, it indirectly implements the interface JspIdConsumer) and therefore internal classes shouldn't access this class. That's also the reason why this method is inside the class ContainerUtils, because it allows MyFaces to be independent of a JSP 2.1 container.


isRunningOnGoogleAppEngine

public static boolean isRunningOnGoogleAppEngine(javax.servlet.ServletContext servletContext)
Returns true if running on Google App Engine (both production and development environment).

If this method returns true, then


isRunningOnGoogleAppEngine

public static boolean isRunningOnGoogleAppEngine(ExternalContext externalContext)
See Also:
isRunningOnGoogleAppEngine(ServletContext)


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