|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.EmbeddedTomcat
This class handles the starting and stopping of the embedded Tomcat server. It does some rudementary checking to make sure that the required filesystem and path variables are in place before it begins.
Constructor Summary | |
EmbeddedTomcat()
Default Constructor |
Method Summary | |
java.lang.String |
getPath()
Basic Accessor returning the value of the context path |
static void |
main(java.lang.String[] args)
Handles server creation and destruction. |
void |
registerWAR(java.lang.String contextPath,
java.net.URL warFile)
Registers a WAR with the container. |
void |
setPath(java.lang.String path)
Basic Accessor setting the value of the context path |
void |
startTomcat()
Starts the Tomcat server. |
void |
stopTomcat()
This method Stops the Tomcat server. |
void |
unregisterWAR(java.lang.String contextPath)
Unregisters a WAR from the web server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmbeddedTomcat()
Method Detail |
public void setPath(java.lang.String path)
path
- The catalina server path.public java.lang.String getPath()
public void startTomcat() throws java.lang.Exception
java.lang.Exception
- for any problemspublic void stopTomcat() throws java.lang.Exception
java.lang.Exception
- if anything goes wrong.public void registerWAR(java.lang.String contextPath, java.net.URL warFile) throws java.lang.Exception
contextPath
- Path under which the application will be registeredwarFile
- URL of the WAR to be registered.
java.lang.Exception
- if anything goes wrong.public void unregisterWAR(java.lang.String contextPath) throws java.lang.Exception
contextPath
- - the context path to be removed
java.lang.Exception
- if anything goes wrong.public static void main(java.lang.String[] args)
args
- Arguments from the user (must be 'stop' or 'start').
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |