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


java.lang.Object
   org.apache.catalina.core.ContainerBase
      org.apache.catalina.core.StandardHost

StandardHost
public class StandardHost extends ContainerBase implements Host(Code)
Standard implementation of the Host interface. Each child container must be a Context implementation to process the requests directed to a particular web application.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 497521 $ $Date: 2007-01-18 19:24:17 +0100 (jeu., 18 janv. 2007) $



Constructor Summary
public  StandardHost()
     Create a new StandardHost component with the default basic Valve.

Method Summary
public  voidaddAlias(String alias)
     Add an alias name that should be mapped to this same Host.
public  voidaddChild(Container child)
     Add a child Container, only if the proposed child is an implementation of Context.
public  ObjectNamecreateObjectName(String domain, ObjectName parent)
    
public  voiddestroy()
    
public  String[]findAliases()
     Return the set of alias names for this Host.
public  String[]getAliases()
    
public  StringgetAppBase()
     Return the application root for this Host.
public  booleangetAutoDeploy()
     Return the value of the auto deploy flag.
public  StringgetConfigClass()
     Return the Java class name of the context configuration class for new web applications.
public  StringgetContextClass()
     Return the Java class name of the Context implementation class for new web applications.
public  booleangetDeployOnStartup()
     Return the value of the deploy on startup flag.
public  StringgetErrorReportValveClass()
     Return the Java class name of the error report valve class for new web applications.
public  StringgetInfo()
     Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.
public  booleangetLiveDeploy()
     Return the value of the live deploy flag.
public  StringgetName()
     Return the canonical, fully qualified, name of the virtual host this Container represents.
public  String[]getValveNames()
    
public  StringgetWorkDir()
     Host work directory base.
public  booleangetXmlNamespaceAware()
     Get the server.xml attribute's xmlNamespaceAware.
public  booleangetXmlValidation()
     Get the server.xml attribute's xmlValidation.
public  voidinit()
    
public  booleanisDeployXML()
     Deploy XML Context config files flag accessor.
public  booleanisUnpackWARs()
     Unpack WARs flag accessor.
public  Contextmap(String uri)
     Return the Context that would be used to process the specified host-relative request URI, if any; otherwise return null.
public  ObjectNamepreRegister(MBeanServer server, ObjectName oname)
    
public  voidremoveAlias(String alias)
     Remove the specified alias name from the aliases for this Host.
public  voidsetAppBase(String appBase)
     Set the application root for this Host.
public  voidsetAutoDeploy(boolean autoDeploy)
     Set the auto deploy flag value for this host.
public  voidsetConfigClass(String configClass)
     Set the Java class name of the context configuration class for new web applications.
public  voidsetContextClass(String contextClass)
     Set the Java class name of the Context implementation class for new web applications.
public  voidsetDeployOnStartup(boolean deployOnStartup)
     Set the deploy on startup flag value for this host.
public  voidsetDeployXML(boolean deployXML)
     Deploy XML Context config files flag mutator.
public  voidsetErrorReportValveClass(String errorReportValveClass)
     Set the Java class name of the error report valve class for new web applications.
public  voidsetLiveDeploy(boolean liveDeploy)
     Set the live deploy flag value for this host.
public  voidsetName(String name)
     Set the canonical, fully qualified, name of the virtual host this Container represents.
public  voidsetUnpackWARs(boolean unpackWARs)
     Unpack WARs flag mutator.
public  voidsetWorkDir(String workDir)
     Host work directory base.
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 synchronized  voidstart()
     Start this host.
public  StringtoString()
     Return a String representation of this component.


Constructor Detail
StandardHost
public StandardHost()(Code)
Create a new StandardHost component with the default basic Valve.




Method Detail
addAlias
public void addAlias(String alias)(Code)
Add an alias name that should be mapped to this same Host.
Parameters:
  alias - The alias to be added



addChild
public void addChild(Container child)(Code)
Add a child Container, only if the proposed child is an implementation of Context.
Parameters:
  child - Child container to be added



createObjectName
public ObjectName createObjectName(String domain, ObjectName parent) throws Exception(Code)



destroy
public void destroy() throws Exception(Code)



findAliases
public String[] findAliases()(Code)
Return the set of alias names for this Host. If none are defined, a zero length array is returned.



getAliases
public String[] getAliases()(Code)



getAppBase
public String getAppBase()(Code)
Return the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.



getAutoDeploy
public boolean getAutoDeploy()(Code)
Return the value of the auto deploy flag. If true, it indicates that this host's child webapps will be dynamically deployed.



getConfigClass
public String getConfigClass()(Code)
Return the Java class name of the context configuration class for new web applications.



getContextClass
public String getContextClass()(Code)
Return the Java class name of the Context implementation class for new web applications.



getDeployOnStartup
public boolean getDeployOnStartup()(Code)
Return the value of the deploy on startup flag. If true, it indicates that this host's child webapps should be discovred and automatically deployed at startup time.



getErrorReportValveClass
public String getErrorReportValveClass()(Code)
Return the Java class name of the error report valve class for new web applications.



getInfo
public String getInfo()(Code)
Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.



getLiveDeploy
public boolean getLiveDeploy()(Code)
Return the value of the live deploy flag. If true, it indicates that a background thread should be started that looks for web application context files, WAR files, or unpacked directories being dropped in to the appBase directory, and deploys new ones as they are encountered.



getName
public String getName()(Code)
Return the canonical, fully qualified, name of the virtual host this Container represents.



getValveNames
public String[] getValveNames() throws Exception(Code)
Return the MBean Names of the Valves assoicated with this Host
exception:
  Exception - if an MBean cannot be created or registered



getWorkDir
public String getWorkDir()(Code)
Host work directory base.



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.



init
public void init()(Code)



isDeployXML
public boolean isDeployXML()(Code)
Deploy XML Context config files flag accessor.



isUnpackWARs
public boolean isUnpackWARs()(Code)
Unpack WARs flag accessor.



map
public Context map(String uri)(Code)
Return the Context that would be used to process the specified host-relative request URI, if any; otherwise return null.
Parameters:
  uri - Request URI to be mapped



preRegister
public ObjectName preRegister(MBeanServer server, ObjectName oname) throws Exception(Code)



removeAlias
public void removeAlias(String alias)(Code)
Remove the specified alias name from the aliases for this Host.
Parameters:
  alias - Alias name to be removed



setAppBase
public void setAppBase(String appBase)(Code)
Set the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
Parameters:
  appBase - The new application root



setAutoDeploy
public void setAutoDeploy(boolean autoDeploy)(Code)
Set the auto deploy flag value for this host.
Parameters:
  autoDeploy - The new auto deploy flag



setConfigClass
public void setConfigClass(String configClass)(Code)
Set the Java class name of the context configuration class for new web applications.
Parameters:
  configClass - The new context configuration class



setContextClass
public void setContextClass(String contextClass)(Code)
Set the Java class name of the Context implementation class for new web applications.
Parameters:
  contextClass - The new context implementation class



setDeployOnStartup
public void setDeployOnStartup(boolean deployOnStartup)(Code)
Set the deploy on startup flag value for this host.
Parameters:
  deployOnStartup - The new deploy on startup flag



setDeployXML
public void setDeployXML(boolean deployXML)(Code)
Deploy XML Context config files flag mutator.



setErrorReportValveClass
public void setErrorReportValveClass(String errorReportValveClass)(Code)
Set the Java class name of the error report valve class for new web applications.
Parameters:
  errorReportValveClass - The new error report valve class



setLiveDeploy
public void setLiveDeploy(boolean liveDeploy)(Code)
Set the live deploy flag value for this host.
Parameters:
  liveDeploy - The new live deploy flag



setName
public void setName(String name)(Code)
Set the canonical, fully qualified, name of the virtual host this Container represents.
Parameters:
  name - Virtual host name
exception:
  IllegalArgumentException - if name is null



setUnpackWARs
public void setUnpackWARs(boolean unpackWARs)(Code)
Unpack WARs flag mutator.



setWorkDir
public void setWorkDir(String workDir)(Code)
Host work directory base.



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 synchronized void start() throws LifecycleException(Code)
Start this host.
exception:
  LifecycleException - if this component detects a fatal errorthat prevents it from being started



toString
public String toString()(Code)
Return a String representation of this component.



Fields inherited from org.apache.catalina.core.ContainerBase
protected int backgroundProcessorDelay(Code)(Java Doc)
protected HashMap children(Code)(Java Doc)
protected Cluster cluster(Code)(Java Doc)
protected ObjectName controller(Code)(Java Doc)
protected String domain(Code)(Java Doc)
protected boolean initialized(Code)(Java Doc)
protected LifecycleSupport lifecycle(Code)(Java Doc)
protected ArrayList listeners(Code)(Java Doc)
protected Loader loader(Code)(Java Doc)
protected String logName(Code)(Java Doc)
protected Log logger(Code)(Java Doc)
protected Manager manager(Code)(Java Doc)
protected transient MBeanServer mserver(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected ObjectName oname(Code)(Java Doc)
protected Container parent(Code)(Java Doc)
protected ClassLoader parentClassLoader(Code)(Java Doc)
protected Pipeline pipeline(Code)(Java Doc)
protected Realm realm(Code)(Java Doc)
protected DirContext resources(Code)(Java Doc)
protected static StringManager sm(Code)(Java Doc)
protected boolean startChildren(Code)(Java Doc)
protected boolean started(Code)(Java Doc)
protected String suffix(Code)(Java Doc)
protected PropertyChangeSupport support(Code)(Java Doc)
protected String type(Code)(Java Doc)

Methods inherited from org.apache.catalina.core.ContainerBase
public void addChild(Container child)(Code)(Java Doc)
public void addContainerListener(ContainerListener listener)(Code)(Java Doc)
public void addLifecycleListener(LifecycleListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void addValve(Valve valve)(Code)(Java Doc)
public void backgroundProcess()(Code)(Java Doc)
public ObjectName createObjectName(String domain, ObjectName parent) throws Exception(Code)(Java Doc)
public void destroy() throws Exception(Code)(Java Doc)
public Container findChild(String name)(Code)(Java Doc)
public Container[] findChildren()(Code)(Java Doc)
public ContainerListener[] findContainerListeners()(Code)(Java Doc)
public LifecycleListener[] findLifecycleListeners()(Code)(Java Doc)
public void fireContainerEvent(String type, Object data)(Code)(Java Doc)
public int getBackgroundProcessorDelay()(Code)(Java Doc)
public Valve getBasic()(Code)(Java Doc)
public ObjectName[] getChildren()(Code)(Java Doc)
public Cluster getCluster()(Code)(Java Doc)
public String getContainerSuffix()(Code)(Java Doc)
public String getDomain()(Code)(Java Doc)
public Valve getFirst()(Code)(Java Doc)
public String getInfo()(Code)(Java Doc)
protected String getJSR77Suffix()(Code)(Java Doc)
public ObjectName getJmxName()(Code)(Java Doc)
public Loader getLoader()(Code)(Java Doc)
public Log getLogger()(Code)(Java Doc)
public Manager getManager()(Code)(Java Doc)
public Object getMappingObject()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getObjectName()(Code)(Java Doc)
public Container getParent()(Code)(Java Doc)
public ClassLoader getParentClassLoader()(Code)(Java Doc)
public ObjectName getParentName() throws MalformedObjectNameException(Code)(Java Doc)
public Pipeline getPipeline()(Code)(Java Doc)
public Realm getRealm()(Code)(Java Doc)
public DirContext getResources()(Code)(Java Doc)
public boolean getStartChildren()(Code)(Java Doc)
public String getType()(Code)(Java Doc)
public ObjectName[] getValveObjectNames()(Code)(Java Doc)
public Valve[] getValves()(Code)(Java Doc)
public void init() throws Exception(Code)(Java Doc)
public void invoke(Request request, Response response) throws IOException, ServletException(Code)(Java Doc)
protected String logName()(Code)(Java Doc)
public void postDeregister()(Code)(Java Doc)
public void postRegister(Boolean registrationDone)(Code)(Java Doc)
public void preDeregister() throws Exception(Code)(Java Doc)
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code)(Java Doc)
public void removeChild(Container child)(Code)(Java Doc)
public void removeContainerListener(ContainerListener listener)(Code)(Java Doc)
public void removeLifecycleListener(LifecycleListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public synchronized void removeValve(Valve valve)(Code)(Java Doc)
public void setBackgroundProcessorDelay(int delay)(Code)(Java Doc)
public void setBasic(Valve valve)(Code)(Java Doc)
public synchronized void setCluster(Cluster cluster)(Code)(Java Doc)
public void setDomain(String domain)(Code)(Java Doc)
public synchronized void setLoader(Loader loader)(Code)(Java Doc)
public synchronized void setManager(Manager manager)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setParent(Container container)(Code)(Java Doc)
public void setParentClassLoader(ClassLoader parent)(Code)(Java Doc)
public synchronized void setRealm(Realm realm)(Code)(Java Doc)
public synchronized void setResources(DirContext resources)(Code)(Java Doc)
public void setStartChildren(boolean startChildren)(Code)(Java Doc)
public synchronized void start() throws LifecycleException(Code)(Java Doc)
public synchronized void stop() throws LifecycleException(Code)(Java Doc)
protected void threadStart()(Code)(Java Doc)
protected void threadStop()(Code)(Java Doc)

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.