Java Doc for Config.java in  » EJB-Server-GlassFish » appserv-jstl » javax » servlet » jsp » jstl » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server GlassFish » appserv jstl » javax.servlet.jsp.jstl.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.servlet.jsp.jstl.core.Config

Config
public class Config (Code)
Class supporting access to configuration settings.


Field Summary
final public static  StringFMT_FALLBACK_LOCALE
    
final public static  StringFMT_LOCALE
    
final public static  StringFMT_LOCALIZATION_CONTEXT
    
final public static  StringFMT_TIME_ZONE
    
final public static  StringSQL_DATA_SOURCE
    
final public static  StringSQL_MAX_ROWS
    


Method Summary
public static  Objectfind(PageContext pc, String name)
     Finds the value associated with a specific configuration setting identified by its context initialization parameter name.

For each of the JSP scopes (page, request, session, application), get the value of the configuration variable identified by name using method get().

public static  Objectget(PageContext pc, String name, int scope)
     Looks up a configuration variable in the given scope.
public static  Objectget(ServletRequest request, String name)
     Looks up a configuration variable in the "request" scope.
public static  Objectget(HttpSession session, String name)
     Looks up a configuration variable in the "session" 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.


Parameters:
  session - Session object in which the configuration variable is tobe looked up
Parameters:
  name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined, if session is null, or if the sessionis invalidated.
public static  Objectget(ServletContext context, String name)
     Looks up a configuration variable in the "application" scope.
public static  voidremove(PageContext pc, String name, int scope)
     Removes a configuration variable from the given scope.
public static  voidremove(ServletRequest request, String name)
     Removes a configuration variable from the "request" scope.
public static  voidremove(HttpSession session, String name)
     Removes a configuration variable from the "session" scope.
public static  voidremove(ServletContext context, String name)
     Removes a configuration variable from the "application" scope.
public static  voidset(PageContext pc, String name, Object value, int scope)
     Sets the value of a configuration variable in the given scope.
public static  voidset(ServletRequest request, String name, Object value)
     Sets the value of a configuration variable in the "request" scope.
public static  voidset(HttpSession session, String name, Object value)
     Sets the value of a configuration variable in the "session" scope.
public static  voidset(ServletContext context, String name, Object value)
     Sets the value of a configuration variable in the "application" scope.

Field Detail
FMT_FALLBACK_LOCALE
final public static String FMT_FALLBACK_LOCALE(Code)
Name of configuration setting for fallback locale



FMT_LOCALE
final public static String FMT_LOCALE(Code)
Name of configuration setting for application- (as opposed to browser-) based preferred locale



FMT_LOCALIZATION_CONTEXT
final public static String FMT_LOCALIZATION_CONTEXT(Code)
Name of configuration setting for i18n localization context



FMT_TIME_ZONE
final public static String FMT_TIME_ZONE(Code)
Name of localization setting for time zone



SQL_DATA_SOURCE
final public static String SQL_DATA_SOURCE(Code)
Name of configuration setting for SQL data source



SQL_MAX_ROWS
final public static String SQL_MAX_ROWS(Code)
Name of configuration setting for maximum number of rows to be included in SQL query result





Method Detail
find
public static Object find(PageContext pc, String name)(Code)
Finds the value associated with a specific configuration setting identified by its context initialization parameter 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.
Parameters:
  pc - Page context in which the configuration setting is to be searched
Parameters:
  name - Context initialization parameter name of the configurationsetting The java.lang.Object associated with the configurationsetting identified by name, or null if it is not defined.




get
public static Object get(PageContext pc, String name, int scope)(Code)
Looks up a configuration variable in the given 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.
Parameters:
  pc - Page context in which the configuration variable is to belooked up
Parameters:
  name - Configuration variable name
Parameters:
  scope - Scope in which the configuration variable is to be lookedup The java.lang.Object associated with the configurationvariable, or null if it is not defined.




get
public static Object get(ServletRequest request, String name)(Code)
Looks up a configuration variable in the "request" 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.
Parameters:
  request - Request object in which the configuration variable is tobe looked up
Parameters:
  name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined.




get
public static Object get(HttpSession session, String name)(Code)
Looks up a configuration variable in the "session" 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.


Parameters:
  session - Session object in which the configuration variable is tobe looked up
Parameters:
  name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined, if session is null, or if the sessionis invalidated.



get
public static Object get(ServletContext context, String name)(Code)
Looks up a configuration variable in the "application" 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.
Parameters:
  context - Servlet context in which the configuration variable isto be looked up
Parameters:
  name - Configuration variable name The java.lang.Object associated with the configurationvariable, or null if it is not defined.




remove
public static void remove(PageContext pc, String name, int scope)(Code)
Removes a configuration variable from the given 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.
Parameters:
  pc - Page context from which the configuration variable is to beremoved
Parameters:
  name - Configuration variable name
Parameters:
  scope - Scope from which the configuration variable is to be removed




remove
public static void remove(ServletRequest request, String name)(Code)
Removes a configuration variable from the "request" 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.
Parameters:
  request - Request object from which the configuration variable isto be removed
Parameters:
  name - Configuration variable name




remove
public static void remove(HttpSession session, String name)(Code)
Removes a configuration variable from the "session" 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.
Parameters:
  session - Session object from which the configuration variable isto be removed
Parameters:
  name - Configuration variable name




remove
public static void remove(ServletContext context, String name)(Code)
Removes a configuration variable from the "application" 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.
Parameters:
  context - Servlet context from which the configuration variable isto be removed
Parameters:
  name - Configuration variable name




set
public static void set(PageContext pc, String name, Object value, int scope)(Code)
Sets the value of a configuration variable in the given 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.
Parameters:
  pc - Page context in which the configuration variable is to be set
Parameters:
  name - Configuration variable name
Parameters:
  value - Configuration variable value
Parameters:
  scope - Scope in which the configuration variable is to be set




set
public static void set(ServletRequest request, String name, Object value)(Code)
Sets the value of a configuration variable in the "request" 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.
Parameters:
  request - Request object in which the configuration variable is tobe set
Parameters:
  name - Configuration variable name
Parameters:
  value - Configuration variable value




set
public static void set(HttpSession session, String name, Object value)(Code)
Sets the value of a configuration variable in the "session" 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.
Parameters:
  session - Session object in which the configuration variable is tobe set
Parameters:
  name - Configuration variable name
Parameters:
  value - Configuration variable value




set
public static void set(ServletContext context, String name, Object value)(Code)
Sets the value of a configuration variable in the "application" 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.
Parameters:
  context - Servlet context in which the configuration variable is tobe set
Parameters:
  name - Configuration variable name
Parameters:
  value - Configuration variable value




Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.