|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.browsecode.helpers.controlcomputer.TomcatManagerConnection
public class TomcatManagerConnection
Nested Class Summary | |
---|---|
class |
TomcatManagerConnection.ConnectionFailed
|
class |
TomcatManagerConnection.ConnectionFailedCreatedUser
|
class |
TomcatManagerConnection.CouldNotFindTomcatDirectory
|
class |
TomcatManagerConnection.WebappStatus
|
Constructor Summary | |
---|---|
TomcatManagerConnection(java.lang.String tomcatPath)
Start up the TomcatManagerConnection when you don't know the userID and password, but do know the path to Tomcat. |
|
TomcatManagerConnection(java.lang.String userID,
java.lang.String password)
Start up the TomcatManagerConnection when you know the userID and password to log in as. |
Method Summary | |
---|---|
void |
checkTomcatLogin()
To forestall future problems, after you call new TomcatManagerConnection(Username,Password), you may want to call this to verify that the username/password were correct. |
boolean |
deleteWebapp(java.lang.String title)
|
java.lang.String |
getLastCallResult()
|
java.lang.String |
getLastCallURL()
|
java.lang.String |
getManagerCallResult(java.lang.String command)
Note that if you put any sensitive information into the 'command' string, you will want to catch the exception this calls and make sure the user never sees it. |
java.lang.String |
getManagerCallResult(java.lang.String command,
java.lang.String webappTitle)
|
java.lang.String |
getManagerCallResult(java.lang.String command,
java.lang.String webappTitle,
java.lang.String extraParameters)
|
java.lang.String |
getPassword()
|
TomcatManagerConnection.WebappStatus |
getStatus(java.lang.String title)
Get the statis of a webapp. |
java.lang.String |
getUserID()
|
java.lang.String |
installWebappGetError(java.lang.String title,
java.io.File warFileOrFolderDirectory)
|
boolean |
reloadWebapp(java.lang.String title)
|
java.lang.String |
reloadWebappGetError(java.lang.String title)
|
void |
setTomcatURL(java.net.URL url)
The URL passed in should be a URL to tomcat or a tomcat webapp. |
boolean |
startWebapp(java.lang.String title)
|
boolean |
stopWebapp(java.lang.String title)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomcatManagerConnection(java.lang.String userID, java.lang.String password)
userID
- password
- public TomcatManagerConnection(java.lang.String tomcatPath) throws TomcatManagerConnection.ConnectionFailed
tomcatPath
-
TomcatManagerConnection.ConnectionFailed
Method Detail |
---|
public void setTomcatURL(java.net.URL url)
public void checkTomcatLogin() throws TomcatManagerConnection.ConnectionFailed
TomcatManagerConnection.ConnectionFailed
public java.lang.String getManagerCallResult(java.lang.String command)
command
-
public java.lang.String getManagerCallResult(java.lang.String command, java.lang.String webappTitle)
public java.lang.String getManagerCallResult(java.lang.String command, java.lang.String webappTitle, java.lang.String extraParameters)
public java.lang.String getLastCallResult()
public java.lang.String getLastCallURL()
public boolean stopWebapp(java.lang.String title)
public boolean startWebapp(java.lang.String title)
public boolean deleteWebapp(java.lang.String title)
public boolean reloadWebapp(java.lang.String title)
public java.lang.String reloadWebappGetError(java.lang.String title)
public java.lang.String installWebappGetError(java.lang.String title, java.io.File warFileOrFolderDirectory)
public TomcatManagerConnection.WebappStatus getStatus(java.lang.String title)
title
-
public java.lang.String getUserID()
public java.lang.String getPassword()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |