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


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

HostConfig
public class HostConfig implements LifecycleListener(Code)
Startup event listener for a Host that configures the properties of that Host, and the associated defined contexts.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 1.31.2.1 $ $Date: 2004/08/21 19:14:28 $


Field Summary
protected  StringconfigClass
     The Java class name of the Context configuration class we should use.
protected  StringcontextClass
     The Java class name of the Context implementation we should use.
protected  intdebug
     The debugging detail level for this component.
protected  ArrayListdeployed
     The names of applications that we have auto-deployed (to avoid double deployment attempts).
protected  Hosthost
     The Host we are associated with.
final protected static  StringManagersm
     The string resources for this package.


Method Summary
protected  FileappBase()
     Return a File object representing the "application root" directory for our associated Host.
protected  voidcheck()
     Deploy webapps.
protected  voidcheckContextLastModified()
     Check deployment descriptors last modified date.
protected  voidcheckRemoveApps()
    
protected  FileconfigBase()
     Return a File object representing the "configuration root" directory for our associated Host.
protected  voiddeployApps()
     Deploy applications for any directories or WAR files that are found in our "application root" directory.
protected  voiddeployDescriptors(File configBase, String[] files)
     Deploy XML context descriptors.
protected  voiddeployDirectories(File appBase, String[] files)
     Deploy directories.
protected  voiddeployWARs(File appBase, String[] files)
     Deploy WAR files.
protected  Stringexpand(URL war)
     Expand the WAR file found at the specified URL into an unpacked directory structure, and return the absolute pathname to the expanded directory.
protected  voidexpand(InputStream input, File docBase, String name)
     Expand the specified input stream into the specified directory, creating a file named from the specified relative path.
public  StringgetConfigClass()
     Return the Context configuration class name.
public  StringgetContextClass()
     Return the Context implementation class name.
public  intgetDebug()
     Return the debugging detail level for this component.
public  booleangetXmlNamespaceAware()
     Get the server.xml attribute's xmlNamespaceAware.
public  booleangetXmlValidation()
     Get the server.xml attribute's xmlValidation.
public  booleanisDeployXML()
     Return the deploy XML config file flag for this component.
public  booleanisUnpackWARs()
     Return the unpack WARs flag.
public  voidlifecycleEvent(LifecycleEvent event)
     Process the START event for an associated Host.
protected  voidlog(String message)
    
protected  voidlog(String message, Throwable throwable)
    
protected  booleanrestartContext(Context context)
    
public  voidsetConfigClass(String configClass)
     Set the Context configuration class name.
public  voidsetContextClass(String contextClass)
     Set the Context implementation class name.
public  voidsetDebug(int debug)
     Set the debugging detail level for this component.
public  voidsetDeployXML(boolean deployXML)
     Set the deploy XML config file flag for this component.
public  voidsetUnpackWARs(boolean unpackWARs)
     Set the unpack WARs flag.
public  voidsetXmlNamespaceAware(boolean xmlNamespaceAware)
     Set the namespace aware feature of the XML parser used when parsing xml instances.
public  voidsetXmlValidation(boolean xmlValidation)
     Set the validation feature of the XML parser used when parsing xml instances.
public  voidstart()
     Process a "start" event for this Host.
public  voidstop()
     Process a "stop" event for this Host.
protected  voidundeployApps()
     Undeploy all deployed applications.

Field Detail
configClass
protected String configClass(Code)
The Java class name of the Context configuration class we should use.



contextClass
protected String contextClass(Code)
The Java class name of the Context implementation we should use.



debug
protected int debug(Code)
The debugging detail level for this component.



deployed
protected ArrayList deployed(Code)
The names of applications that we have auto-deployed (to avoid double deployment attempts).



host
protected Host host(Code)
The Host we are associated with.



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





Method Detail
appBase
protected File appBase()(Code)
Return a File object representing the "application root" directory for our associated Host.



check
protected void check()(Code)
Deploy webapps.



checkContextLastModified
protected void checkContextLastModified()(Code)
Check deployment descriptors last modified date.



checkRemoveApps
protected void checkRemoveApps()(Code)
Check remove wars, dir and context xml's



configBase
protected File configBase()(Code)
Return a File object representing the "configuration root" directory for our associated Host.



deployApps
protected void deployApps()(Code)
Deploy applications for any directories or WAR files that are found in our "application root" directory.



deployDescriptors
protected void deployDescriptors(File configBase, String[] files)(Code)
Deploy XML context descriptors.



deployDirectories
protected void deployDirectories(File appBase, String[] files)(Code)
Deploy directories.
Parameters:
  appBase - The Host appBase files[] The files to deploy



deployWARs
protected void deployWARs(File appBase, String[] files)(Code)
Deploy WAR files.



expand
protected String expand(URL war) throws IOException(Code)
Expand the WAR file found at the specified URL into an unpacked directory structure, and return the absolute pathname to the expanded directory.
Parameters:
  war - URL of the web application archive to be expanded(must start with "jar:")
exception:
  IllegalArgumentException - if this is not a "jar:" URL
exception:
  IOException - if an input/output error was encounteredduring expansion



expand
protected void expand(InputStream input, File docBase, String name) throws IOException(Code)
Expand the specified input stream into the specified directory, creating a file named from the specified relative path.
Parameters:
  input - InputStream to be copied
Parameters:
  docBase - Document base directory into which we are expanding
Parameters:
  name - Relative pathname of the file to be created
exception:
  IOException - if an input/output error occurs



getConfigClass
public String getConfigClass()(Code)
Return the Context configuration class name.



getContextClass
public String getContextClass()(Code)
Return the Context implementation class name.



getDebug
public int getDebug()(Code)
Return the debugging detail level for this component.



getXmlNamespaceAware
public boolean getXmlNamespaceAware()(Code)
Get the server.xml attribute's xmlNamespaceAware. true if namespace awarenes is enabled.



getXmlValidation
public boolean getXmlValidation()(Code)
Get the server.xml attribute's xmlValidation. true if validation is enabled.



isDeployXML
public boolean isDeployXML()(Code)
Return the deploy XML config file flag for this component.



isUnpackWARs
public boolean isUnpackWARs()(Code)
Return the unpack WARs flag.



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



log
protected void log(String message)(Code)
Log a message on the Logger associated with our Host (if any)
Parameters:
  message - Message to be logged



log
protected void log(String message, Throwable throwable)(Code)
Log a message on the Logger associated with our Host (if any)
Parameters:
  message - Message to be logged
Parameters:
  throwable - Associated exception



restartContext
protected boolean restartContext(Context context)(Code)



setConfigClass
public void setConfigClass(String configClass)(Code)
Set the Context configuration class name.
Parameters:
  configClass - The new Context configuration class name.



setContextClass
public void setContextClass(String contextClass)(Code)
Set the Context implementation class name.
Parameters:
  contextClass - The new Context implementation class name.



setDebug
public void setDebug(int debug)(Code)
Set the debugging detail level for this component.
Parameters:
  debug - The new debugging detail level



setDeployXML
public void setDeployXML(boolean deployXML)(Code)
Set the deploy XML config file flag for this component.
Parameters:
  deployXML - The new deploy XML flag



setUnpackWARs
public void setUnpackWARs(boolean unpackWARs)(Code)
Set the unpack WARs flag.
Parameters:
  unpackWARs - The new unpack WARs flag



setXmlNamespaceAware
public void setXmlNamespaceAware(boolean xmlNamespaceAware)(Code)
Set the namespace aware feature of the XML parser used when parsing xml instances.
Parameters:
  xmlNamespaceAware - true to enable namespace awareness



setXmlValidation
public void setXmlValidation(boolean xmlValidation)(Code)
Set the validation feature of the XML parser used when parsing xml instances.
Parameters:
  xmlValidation - true to enable xml instance validation



start
public void start()(Code)
Process a "start" event for this Host.



stop
public void stop()(Code)
Process a "stop" event for this Host.



undeployApps
protected void undeployApps()(Code)
Undeploy all deployed applications.



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.