org.springframework.web.util
Class TagUtils

java.lang.Object
  extended byorg.springframework.web.util.TagUtils

public abstract class TagUtils
extends Object

Utility class to transform Strings to scopes:

Author:
Alef Arendsen

Field Summary
static String SCOPE_APPLICATION
          constant identifying the application scope String
static String SCOPE_PAGE
          constant identifying the page scope String
static String SCOPE_REQUEST
          constant identifying the request scope String
static String SCOPE_SESSION
          constant identifying the session scope String
 
Constructor Summary
TagUtils()
           
 
Method Summary
static int getScope(String scope)
          Determines the scope for a given input String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_PAGE

public static final String SCOPE_PAGE
constant identifying the page scope String

See Also:
Constant Field Values

SCOPE_REQUEST

public static final String SCOPE_REQUEST
constant identifying the request scope String

See Also:
Constant Field Values

SCOPE_SESSION

public static final String SCOPE_SESSION
constant identifying the session scope String

See Also:
Constant Field Values

SCOPE_APPLICATION

public static final String SCOPE_APPLICATION
constant identifying the application scope String

See Also:
Constant Field Values
Constructor Detail

TagUtils

public TagUtils()
Method Detail

getScope

public static int getScope(String scope)
Determines the scope for a given input String. If the string does not match 'request', 'session', 'page' or 'application', the method will return PageContext.PAGE_SCOPE.

Parameters:
scope - the string to inspect
Returns:
the scope found, or PageContext.PAGE_SCOPE if no scope matched.
Throws:
IllegalArgumentException - if the scope is null


Copyright (C) 2003-2004 The Spring Framework Project.