|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xerial.tomcat.TomcatServer
public class TomcatServer
Embedded Tomcat Server
| 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 |
start()
Starts the 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)
port - port used by the tomcatpublic TomcatServer(TomcatServerConfiguration configuration)
configuration - configuration parameters| Method Detail |
|---|
public static void main(String[] args)
args -
public void start()
throws TomcatException
TomcatException - when failed to launch tomcat
public void registerWAR(String contextPath,
String pathToTheWarFile)
throws TomcatException
TomcatException
public void addContext(String contextPath,
String docBase)
throws TomcatException
TomcatException
public void stop()
throws TomcatException
TomcatException - failed to stop tomcatpublic File findDir(String resourceName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
