public class ContainerUtils extends Object
Constructor and Description |
---|
ContainerUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean isJsp21(javax.servlet.ServletContext context)
true
if we're running in a JSP 2.1 environment,
false
otherwisepublic static boolean isValueReference(String value)
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.
public static boolean isRunningOnGoogleAppEngine(javax.servlet.ServletContext servletContext)
If this method returns true, then
public static boolean isRunningOnGoogleAppEngine(ExternalContext externalContext)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.