|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.jstl.core.Config
public class Config
Class supporting access to configuration settings.
Field Summary | |
---|---|
static java.lang.String |
FMT_FALLBACK_LOCALE
Name of configuration setting for fallback locale |
static java.lang.String |
FMT_LOCALE
Name of configuration setting for application- (as opposed to browser-) based preferred locale |
static java.lang.String |
FMT_LOCALIZATION_CONTEXT
Name of configuration setting for i18n localization context |
static java.lang.String |
FMT_TIME_ZONE
Name of localization setting for time zone |
static java.lang.String |
SQL_DATA_SOURCE
Name of configuration setting for SQL data source |
static java.lang.String |
SQL_MAX_ROWS
Name of configuration setting for maximum number of rows to be included in SQL query result |
Constructor Summary | |
---|---|
Config()
|
Method Summary | |
---|---|
static java.lang.Object |
find(PageContext pc,
java.lang.String name)
Finds the value associated with a specific configuration setting identified by its context initialization parameter name. |
static java.lang.Object |
get(HttpSession session,
java.lang.String name)
Looks up a configuration variable in the "session" scope. |
static java.lang.Object |
get(PageContext pc,
java.lang.String name,
int scope)
Looks up a configuration variable in the given scope. |
static java.lang.Object |
get(ServletContext context,
java.lang.String name)
Looks up a configuration variable in the "application" scope. |
static java.lang.Object |
get(ServletRequest request,
java.lang.String name)
Looks up a configuration variable in the "request" scope. |
static void |
remove(HttpSession session,
java.lang.String name)
Removes a configuration variable from the "session" scope. |
static void |
remove(PageContext pc,
java.lang.String name,
int scope)
Removes a configuration variable from the given scope. |
static void |
remove(ServletContext context,
java.lang.String name)
Removes a configuration variable from the "application" scope. |
static void |
remove(ServletRequest request,
java.lang.String name)
Removes a configuration variable from the "request" scope. |
static void |
set(HttpSession session,
java.lang.String name,
java.lang.Object value)
Sets the value of a configuration variable in the "session" scope. |
static void |
set(PageContext pc,
java.lang.String name,
java.lang.Object value,
int scope)
Sets the value of a configuration variable in the given scope. |
static void |
set(ServletContext context,
java.lang.String name,
java.lang.Object value)
Sets the value of a configuration variable in the "application" scope. |
static void |
set(ServletRequest request,
java.lang.String name,
java.lang.Object value)
Sets the value of a configuration variable in the "request" scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FMT_LOCALE
public static final java.lang.String FMT_FALLBACK_LOCALE
public static final java.lang.String FMT_LOCALIZATION_CONTEXT
public static final java.lang.String FMT_TIME_ZONE
public static final java.lang.String SQL_DATA_SOURCE
public static final java.lang.String SQL_MAX_ROWS
Constructor Detail |
---|
public Config()
Method Detail |
---|
public static java.lang.Object get(PageContext pc, java.lang.String name, int scope)
The lookup of configuration variables is performed as if each scope had its own name space, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
pc
- Page context in which the configuration variable is to be
looked upname
- Configuration variable namescope
- Scope in which the configuration variable is to be looked
up
public static java.lang.Object get(ServletRequest request, java.lang.String name)
The lookup of configuration variables is performed as if each scope had its own name space, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
request
- Request object in which the configuration variable is to
be looked upname
- Configuration variable name
public static java.lang.Object get(HttpSession session, java.lang.String name)
The lookup of configuration variables is performed as if each scope had its own name space, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
session
- Session object in which the configuration variable is to
be looked upname
- Configuration variable name
public static java.lang.Object get(ServletContext context, java.lang.String name)
The lookup of configuration variables is performed as if each scope had its own name space, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
context
- Servlet context in which the configuration variable is
to be looked upname
- Configuration variable name
public static void set(PageContext pc, java.lang.String name, java.lang.Object value, int scope)
Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
pc
- Page context in which the configuration variable is to be setname
- Configuration variable namevalue
- Configuration variable valuescope
- Scope in which the configuration variable is to be setpublic static void set(ServletRequest request, java.lang.String name, java.lang.Object value)
Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
request
- Request object in which the configuration variable is to
be setname
- Configuration variable namevalue
- Configuration variable valuepublic static void set(HttpSession session, java.lang.String name, java.lang.Object value)
Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
session
- Session object in which the configuration variable is to
be setname
- Configuration variable namevalue
- Configuration variable valuepublic static void set(ServletContext context, java.lang.String name, java.lang.Object value)
Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.
context
- Servlet context in which the configuration variable is to
be setname
- Configuration variable namevalue
- Configuration variable valuepublic static void remove(PageContext pc, java.lang.String name, int scope)
Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.
pc
- Page context from which the configuration variable is to be
removedname
- Configuration variable namescope
- Scope from which the configuration variable is to be
removedpublic static void remove(ServletRequest request, java.lang.String name)
Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.
request
- Request object from which the configuration variable is
to be removedname
- Configuration variable namepublic static void remove(HttpSession session, java.lang.String name)
Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.
session
- Session object from which the configuration variable is
to be removedname
- Configuration variable namepublic static void remove(ServletContext context, java.lang.String name)
Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.
context
- Servlet context from which the configuration variable is
to be removedname
- Configuration variable namepublic static java.lang.Object find(PageContext pc, java.lang.String name)
For each of the JSP scopes (page, request, session, application), get the value of the configuration variable identified by name using method get(). Return as soon as a non-null value is found. If no value is found, get the value of the context initialization parameter identified by name.
pc
- Page context in which the configuration setting is to be
searchedname
- Context initialization parameter name of the configuration
setting
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34