Java Doc for ContextConfig.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » catalina » startup » 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 » Sevlet Container » apache tomcat 6.0.14 » org.apache.catalina.startup 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.startup.ContextConfig

ContextConfig
public class ContextConfig implements LifecycleListener(Code)
Startup event listener for a Context that configures the properties of that Context, and the associated defined servlets.
author:
   Craig R. McClanahan
author:
   Jean-Francois Arcand
version:
   $Revision: 556489 $ $Date: 2007-07-16 04:01:01 +0200 (lun., 16 juil. 2007) $

Inner Class :protected class ContextErrorHandler implements ErrorHandler

Field Summary
final protected static  LoginConfigDUMMY_LOGIN_CONFIG
    
protected static  Propertiesauthenticators
     The set of Authenticators that we know how to configure.
protected  Contextcontext
     The Context we are associated with.
protected static  DigestercontextDigester
     The Digester we will use to process web application context files.
protected  MapcustomAuthenticators
    
protected  StringdefaultContextXml
     The default web application's context file location.
protected  StringdefaultWebXml
     The default web application's deployment descriptor location.
protected static  longdeploymentCount
     Deployment count.
protected static  org.apache.juli.logging.Loglog
    
protected  booleanok
     Track any fatal errors during startup configuration processing.
protected  StringoriginalDocBase
     Original docBase.
protected  SAXParseExceptionparseException
     Any parse error which occurred while parsing XML descriptors.
final protected static  StringManagersm
     The string resources for this package.
protected static  DigesterwebDigester
     The Digester we will use to process web application deployment descriptor files.
protected static  WebRuleSetwebRuleSet
    
protected static  booleanxmlNamespaceAware
     Attribute value used to turn on/off XML namespace awarenes.
protected static  booleanxmlValidation
    


Method Summary
protected  voidantiLocking()
    
protected  voidapplicationAnnotationsConfig()
     Process the application classes annotations, if it exists.
protected  voidapplicationWebConfig()
     Process the application configuration file, if it exists.
protected synchronized  voidauthenticatorConfig()
     Set up an Authenticator automatically if required, and one has not already been configured.
protected synchronized  voidbeforeStart()
     Process a "before start" event for this Context.
protected  voidcontextConfig()
     Process the default configuration file, if it exists.
protected  DigestercreateContextDigester()
     Create (if necessary) and return a Digester configured to process the context configuration descriptor for an application.
protected static  DigestercreateWebDigester()
     Create (if necessary) and return a Digester configured to process the web application deployment descriptor (web.xml).
public static  DigestercreateWebXmlDigester(boolean namespaceAware, boolean validation)
     Create (if necessary) and return a Digester configured to process the web application deployment descriptor (web.xml).
protected  voiddefaultWebConfig()
     Process the default configuration file, if it exists.
protected synchronized  voiddestroy()
     Process a "destroy" event for this Context.
protected  voidfixDocBase()
     Adjust docBase.
protected  StringgetBaseDir()
    
protected  FilegetConfigBase()
     Get config base.
public  StringgetDefaultContextXml()
    
public  StringgetDefaultWebXml()
    
protected  StringgetHostConfigPath(String resourceName)
    
protected  voidinit()
     Process a "init" event for this Context.
public  voidlifecycleEvent(LifecycleEvent event)
     Process events for an associated Context.
protected  voidprocessContextConfig(File baseDir, String resourceName)
     Process a context.xml.
protected  voidprocessDefaultWebConfig(Digester digester, InputStream stream, InputSource source)
     Process a default web.xml.
public  voidsetCustomAuthenticators(Map customAuthenticators)
     Sets custom mappings of login methods to authenticators.
public  voidsetDefaultContextXml(String path)
    
public  voidsetDefaultWebXml(String path)
    
protected synchronized  voidstart()
     Process a "start" event for this Context.
protected synchronized  voidstop()
     Process a "stop" event for this Context.
protected  voidvalidateSecurityRoles()
     Validate the usage of security role names in the web application deployment descriptor.

Field Detail
DUMMY_LOGIN_CONFIG
final protected static LoginConfig DUMMY_LOGIN_CONFIG(Code)



authenticators
protected static Properties authenticators(Code)
The set of Authenticators that we know how to configure. The key is the name of the implemented authentication method, and the value is the fully qualified Java class name of the corresponding Valve.



context
protected Context context(Code)
The Context we are associated with.



contextDigester
protected static Digester contextDigester(Code)
The Digester we will use to process web application context files.



customAuthenticators
protected Map customAuthenticators(Code)
Custom mappings of login methods to authenticators



defaultContextXml
protected String defaultContextXml(Code)
The default web application's context file location.



defaultWebXml
protected String defaultWebXml(Code)
The default web application's deployment descriptor location.



deploymentCount
protected static long deploymentCount(Code)
Deployment count.



log
protected static org.apache.juli.logging.Log log(Code)



ok
protected boolean ok(Code)
Track any fatal errors during startup configuration processing.



originalDocBase
protected String originalDocBase(Code)
Original docBase.



parseException
protected SAXParseException parseException(Code)
Any parse error which occurred while parsing XML descriptors.



sm
final protected static StringManager sm(Code)
The string resources for this package.



webDigester
protected static Digester webDigester(Code)
The Digester we will use to process web application deployment descriptor files.



webRuleSet
protected static WebRuleSet webRuleSet(Code)
The Rule used to parse the web.xml



xmlNamespaceAware
protected static boolean xmlNamespaceAware(Code)
Attribute value used to turn on/off XML namespace awarenes.



xmlValidation
protected static boolean xmlValidation(Code)
Attribute value used to turn on/off XML validation





Method Detail
antiLocking
protected void antiLocking() throws IOException(Code)



applicationAnnotationsConfig
protected void applicationAnnotationsConfig()(Code)
Process the application classes annotations, if it exists.



applicationWebConfig
protected void applicationWebConfig()(Code)
Process the application configuration file, if it exists.



authenticatorConfig
protected synchronized void authenticatorConfig()(Code)
Set up an Authenticator automatically if required, and one has not already been configured.



beforeStart
protected synchronized void beforeStart()(Code)
Process a "before start" event for this Context.



contextConfig
protected void contextConfig()(Code)
Process the default configuration file, if it exists.



createContextDigester
protected Digester createContextDigester()(Code)
Create (if necessary) and return a Digester configured to process the context configuration descriptor for an application.



createWebDigester
protected static Digester createWebDigester()(Code)
Create (if necessary) and return a Digester configured to process the web application deployment descriptor (web.xml).



createWebXmlDigester
public static Digester createWebXmlDigester(boolean namespaceAware, boolean validation)(Code)
Create (if necessary) and return a Digester configured to process the web application deployment descriptor (web.xml).



defaultWebConfig
protected void defaultWebConfig()(Code)
Process the default configuration file, if it exists. The default config must be read with the container loader - so container servlets can be loaded



destroy
protected synchronized void destroy()(Code)
Process a "destroy" event for this Context.



fixDocBase
protected void fixDocBase() throws IOException(Code)
Adjust docBase.



getBaseDir
protected String getBaseDir()(Code)



getConfigBase
protected File getConfigBase()(Code)
Get config base.



getDefaultContextXml
public String getDefaultContextXml()(Code)
Return the location of the default context file



getDefaultWebXml
public String getDefaultWebXml()(Code)
Return the location of the default deployment descriptor



getHostConfigPath
protected String getHostConfigPath(String resourceName)(Code)



init
protected void init()(Code)
Process a "init" event for this Context.



lifecycleEvent
public void lifecycleEvent(LifecycleEvent event)(Code)
Process events for an associated Context.
Parameters:
  event - The lifecycle event that has occurred



processContextConfig
protected void processContextConfig(File baseDir, String resourceName)(Code)
Process a context.xml.



processDefaultWebConfig
protected void processDefaultWebConfig(Digester digester, InputStream stream, InputSource source)(Code)
Process a default web.xml.



setCustomAuthenticators
public void setCustomAuthenticators(Map customAuthenticators)(Code)
Sets custom mappings of login methods to authenticators.
Parameters:
  customAuthenticators - Custom mappings of login methods toauthenticators



setDefaultContextXml
public void setDefaultContextXml(String path)(Code)
Set the location of the default context file
Parameters:
  path - Absolute/relative path to the default context.xml



setDefaultWebXml
public void setDefaultWebXml(String path)(Code)
Set the location of the default deployment descriptor
Parameters:
  path - Absolute/relative path to the default web.xml



start
protected synchronized void start()(Code)
Process a "start" event for this Context.



stop
protected synchronized void stop()(Code)
Process a "stop" event for this Context.



validateSecurityRoles
protected void validateSecurityRoles()(Code)
Validate the usage of security role names in the web application deployment descriptor. If any problems are found, issue warning messages (for backwards compatibility) and add the missing roles. (To make these problems fatal instead, simply set the ok instance variable to false as well).



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.