|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tm.tomcat.TomcatServer
Tomcat server object. Stores all connection information and provides a method for executing manager commands.
Constructor Summary | |
TomcatServer()
Default constructor. |
|
TomcatServer(String newHost,
String newUser,
String newPassword)
Constructor |
Method Summary | |
boolean |
equals(Object obj)
|
String |
executeManager(String command)
Executes a manager command. |
String |
generateReloadURL(String context)
Generates the reload URL for the given context name. |
String |
getHost()
|
String |
getManager()
|
String |
getName()
|
String |
getPassword()
|
int |
getPort()
|
String |
getProtocol()
|
String |
getUser()
|
int |
hashCode()
|
void |
setHost(String string)
|
void |
setManager(String string)
|
void |
setName(String string)
|
void |
setPassword(String string)
|
void |
setPort(int value)
|
void |
setProtocol(String string)
|
void |
setUser(String string)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TomcatServer()
public TomcatServer(String newHost, String newUser, String newPassword)
newHost
- Hostname of the tomcat server (e.g. www.someserver.com)newUser
- Username for the managing applicationnewPassword
- Password for the managing applicationMethod Detail |
public String getPassword()
public int getPort()
public String getProtocol()
public String getHost()
public String getUser()
public void setPassword(String string)
string
- value of the field passwordpublic void setPort(int value)
value
- new value for the field portpublic void setProtocol(String string)
string
- new value for the field protocolpublic void setHost(String string)
string
- new value for the field hostpublic void setUser(String string)
string
- new value for the field userpublic String getManager()
public void setManager(String string)
string
- new value for the field managerpublic String getName()
public void setName(String string)
string
- new name of the tomcat serverpublic String executeManager(String command) throws IOException
For a list of available commands please consult the tomcat manager documentation.
command
- The manager command. Example command: /start?path=/test
IOException
- Something went wrong during URL connectpublic String generateReloadURL(String context)
Example:
http://server:8080/manager/reload?path=/examples
context
- name of the context, must containt the leading /
public String toString()
Object.toString()
public boolean equals(Object obj)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |