SourceForge.net Logo

de.mindmatters.faces.util
Class WebUtils

java.lang.Object
  extended byde.mindmatters.faces.util.WebUtils

public final class WebUtils
extends java.lang.Object

Miscellaneous utilities for web applications. Used by various framework classes.

Author:
Andreas Kuhrwahl

Field Summary
static java.lang.String APPLICATION_SCOPE
          The faces application scope identifier.
static java.lang.String NONE_SCOPE
          The faces none scope identifier.
static java.lang.String REQUEST_SCOPE
          The faces request scope identifier.
static java.lang.String SESSION_SCOPE
          The faces session scope identifier.
 
Method Summary
static boolean isApplicationScope(java.lang.String scope)
          Checks whether the scope identifier scope equals the application scope identifier or not.
static boolean isNoneScope(java.lang.String scope)
          Checks whether the scope identifier scope equals the none scope identifier or not.
static boolean isRequestScope(java.lang.String scope)
          Checks whether the scope identifier scope equals the request scope identifier or not.
static boolean isSessionScope(java.lang.String scope)
          Checks whether the scope identifier scope equals the session scope identifier or not.
static boolean isValueBinding(java.lang.String value)
          Checks whether the string value is a value binding compatible string or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_SCOPE

public static final java.lang.String APPLICATION_SCOPE
The faces application scope identifier.

See Also:
Constant Field Values

SESSION_SCOPE

public static final java.lang.String SESSION_SCOPE
The faces session scope identifier.

See Also:
Constant Field Values

REQUEST_SCOPE

public static final java.lang.String REQUEST_SCOPE
The faces request scope identifier.

See Also:
Constant Field Values

NONE_SCOPE

public static final java.lang.String NONE_SCOPE
The faces none scope identifier.

See Also:
Constant Field Values
Method Detail

isApplicationScope

public static boolean isApplicationScope(java.lang.String scope)
Checks whether the scope identifier scope equals the application scope identifier or not.

Parameters:
scope - the faces scope identifier
Returns:
true if scope equals the application scope identifier else false

isSessionScope

public static boolean isSessionScope(java.lang.String scope)
Checks whether the scope identifier scope equals the session scope identifier or not.

Parameters:
scope - the faces scope identifier
Returns:
true if scope equals the session scope identifier else false

isRequestScope

public static boolean isRequestScope(java.lang.String scope)
Checks whether the scope identifier scope equals the request scope identifier or not.

Parameters:
scope - the faces scope identifier
Returns:
true if scope equals the request scope identifier else false

isNoneScope

public static boolean isNoneScope(java.lang.String scope)
Checks whether the scope identifier scope equals the none scope identifier or not.

Parameters:
scope - the faces scope identifier
Returns:
true if scope equals the none scope identifier else false

isValueBinding

public static boolean isValueBinding(java.lang.String value)
Checks whether the string value is a value binding compatible string or not.

Parameters:
value - the string to check
Returns:
true if value is a value binding compatible string else false

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG