Package org.apache.catalina.startup
Class Bootstrap
- java.lang.Object
- 
- org.apache.catalina.startup.Bootstrap
 
- 
 public final class Bootstrap extends java.lang.ObjectBootstrap loader for Catalina. This application constructs a class loader for use in loading the Catalina internal classes (by accumulating all of the JAR files found in the "server" directory under "catalina.home"), and starts the regular execution of the container. The purpose of this roundabout approach is to keep the Catalina internal classes (and any other classes they depend on, such as an XML parser) out of the system class path and therefore not visible to application level classes.- Author:
- Craig R. McClanahan, Remy Maucherat
 
- 
- 
Constructor SummaryConstructors Constructor Description Bootstrap()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy the Catalina Daemon.booleangetAwait()static java.lang.StringgetCatalinaBase()Obtain the name of the configured base (instance) directory.static java.io.FilegetCatalinaBaseFile()Obtain the configured base (instance) directory.static java.lang.StringgetCatalinaHome()Obtain the name of configured home (binary) directory.static java.io.FilegetCatalinaHomeFile()Obtain the configured home (binary) directory.protected static java.lang.String[]getPaths(java.lang.String value)voidinit()Initialize daemon.voidinit(java.lang.String[] arguments)Load the Catalina daemon.static voidmain(java.lang.String[] args)Main method and entry point when starting Tomcat via the provided scripts.protected java.lang.Stringreplace(java.lang.String str)System property replacement in the given string.voidsetAwait(boolean await)Set flag.voidstart()Start the Catalina daemon.voidstop()Stop the Catalina Daemon.voidstopServer()Stop the standalone server.voidstopServer(java.lang.String[] arguments)Stop the standalone server.
 
- 
- 
- 
Method Detail- 
replaceprotected java.lang.String replace(java.lang.String str) System property replacement in the given string.- Parameters:
- str- The original string
- Returns:
- the modified string
 
 - 
initpublic void init() throws java.lang.ExceptionInitialize daemon.- Throws:
- java.lang.Exception- Fatal initialization error
 
 - 
initpublic void init(java.lang.String[] arguments) throws java.lang.ExceptionLoad the Catalina daemon.- Parameters:
- arguments- Initialization arguments
- Throws:
- java.lang.Exception- Fatal initialization error
 
 - 
startpublic void start() throws java.lang.ExceptionStart the Catalina daemon.- Throws:
- java.lang.Exception- Fatal start error
 
 - 
stoppublic void stop() throws java.lang.ExceptionStop the Catalina Daemon.- Throws:
- java.lang.Exception- Fatal stop error
 
 - 
stopServerpublic void stopServer() throws java.lang.ExceptionStop the standalone server.- Throws:
- java.lang.Exception- Fatal stop error
 
 - 
stopServerpublic void stopServer(java.lang.String[] arguments) throws java.lang.ExceptionStop the standalone server.- Parameters:
- arguments- Command line arguments
- Throws:
- java.lang.Exception- Fatal stop error
 
 - 
setAwaitpublic void setAwait(boolean await) throws java.lang.ExceptionSet flag.- Parameters:
- await-- trueif the daemon should block
- Throws:
- java.lang.Exception- Reflection error
 
 - 
getAwaitpublic boolean getAwait() throws java.lang.Exception- Throws:
- java.lang.Exception
 
 - 
destroypublic void destroy() Destroy the Catalina Daemon.
 - 
mainpublic static void main(java.lang.String[] args) Main method and entry point when starting Tomcat via the provided scripts.- Parameters:
- args- Command line arguments to be processed
 
 - 
getCatalinaHomepublic static java.lang.String getCatalinaHome() Obtain the name of configured home (binary) directory. Note that home and base may be the same (and are by default).- Returns:
- the catalina home
 
 - 
getCatalinaBasepublic static java.lang.String getCatalinaBase() Obtain the name of the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned bygetCatalinaHome()will be used.- Returns:
- the catalina base
 
 - 
getCatalinaHomeFilepublic static java.io.File getCatalinaHomeFile() Obtain the configured home (binary) directory. Note that home and base may be the same (and are by default).- Returns:
- the catalina home as a file
 
 - 
getCatalinaBaseFilepublic static java.io.File getCatalinaBaseFile() Obtain the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned bygetCatalinaHomeFile()will be used.- Returns:
- the catalina base as a file
 
 - 
getPathsprotected static java.lang.String[] getPaths(java.lang.String value) 
 
- 
 
-