|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.adaptors.html.TomcatServer
public class TomcatServer
Starter for Tomcat using XML.
| Field Summary | |
|---|---|
(package private) java.lang.String |
configFile
|
(package private) static java.lang.String |
DEFAULT_CONFIG
|
(package private) boolean |
doStop
|
| Constructor Summary | |
|---|---|
TomcatServer()
|
|
| Method Summary | |
|---|---|
void |
execute(java.lang.String[] args)
|
static void |
generateServerConfig(org.apache.tomcat.core.ContextManager cm)
This method will generate Server config files that reflect the existing cm settings. |
(package private) java.io.File |
getConfigFile(org.apache.tomcat.core.ContextManager cm)
Return the configuration file we are processing. |
org.apache.tomcat.core.ContextManager |
getContextManager()
|
static void |
printUsage()
|
boolean |
processArgs(java.lang.String[] args)
Process arguments - set object properties from the list of args. |
(package private) void |
setConnectorHelper(org.apache.tomcat.util.xml.XmlMapper xh)
|
(package private) void |
setHelper(org.apache.tomcat.util.xml.XmlMapper xh)
|
(package private) void |
setLogHelper(org.apache.tomcat.util.xml.XmlMapper xh)
Setup loggers when reading the configuration file - this will be called only when starting tomcat as deamon, all other modes will output to stderr |
void |
stop()
Stop tomcat using the configured cm The manager is set up using the same configuration file, so it will have the same port as the original instance ( no need for a "log" file). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.lang.String configFile
static final java.lang.String DEFAULT_CONFIG
boolean doStop
| Constructor Detail |
|---|
public TomcatServer()
| Method Detail |
|---|
public org.apache.tomcat.core.ContextManager getContextManager()
void setHelper(org.apache.tomcat.util.xml.XmlMapper xh)
void setConnectorHelper(org.apache.tomcat.util.xml.XmlMapper xh)
void setLogHelper(org.apache.tomcat.util.xml.XmlMapper xh)
java.io.File getConfigFile(org.apache.tomcat.core.ContextManager cm)
-config filename command line argument is not
used, the default configuration filename will be loaded from
the TOMCAT_HOME directory.
If a relative config file is used, it will be relative to the current
working directory.
cm - The ContextManager we are configuring
public void execute(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public static void generateServerConfig(org.apache.tomcat.core.ContextManager cm)
throws org.apache.tomcat.core.TomcatException
org.apache.tomcat.core.TomcatException
public void stop()
throws java.lang.Exception
java.lang.Exceptionpublic static void printUsage()
public boolean processArgs(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||