|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.utgenome.shell.tomcat.TomcatServer
public class TomcatServer
Embedded Tomcat Server
Nested Class Summary | |
---|---|
static class |
TomcatServer.Opt
|
Constructor Summary | |
---|---|
TomcatServer(int port)
Creates a TomcatServer instance with the specified port |
|
TomcatServer(TomcatServerConfiguration configuration)
Configures the tomcat server |
Method Summary | |
---|---|
void |
addContext(String contextPath,
String docBase)
|
File |
findDir(String resourceName)
|
static void |
main(String[] args)
entry point for running Tomcat from CUI |
void |
registerWAR(String contextPath,
String pathToTheWarFile)
|
void |
setConfiguration(TomcatServerConfiguration configuration)
|
void |
start()
Starts a Tomcat server |
void |
stop()
Stops the tomcat server |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomcatServer(int port) throws org.xerial.core.XerialException
port
- port used by the tomcat
org.xerial.core.XerialException
public TomcatServer(TomcatServerConfiguration configuration) throws org.xerial.core.XerialException
configuration
- configuration parameters
org.xerial.core.XerialException
Method Detail |
---|
public static void main(String[] args)
args
- public void setConfiguration(TomcatServerConfiguration configuration)
public void start() throws org.xerial.core.XerialException
TomcatException
- when failed to launch tomcat
org.xerial.core.XerialException
public void registerWAR(String contextPath, String pathToTheWarFile) throws org.xerial.core.XerialException
org.xerial.core.XerialException
public void addContext(String contextPath, String docBase) throws org.xerial.core.XerialException
org.xerial.core.XerialException
public void stop() throws org.xerial.core.XerialException
TomcatException
- failed to stop tomcat
org.xerial.core.XerialException
public File findDir(String resourceName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |