|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PageBoxLib.TomcatInstall
Tomcat 4 installer
Changes:
alexis.grandemange@pagebox.net
Copyright (c) 2002-2004 Alexis Grandemange
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. A copy of the GNU Lesser General Public License lesser.txt should be included in the distribution.
Field Summary | |
(package private) boolean |
isRelativeTarget
True if the archPath in install method is relative |
(package private) java.lang.String |
iurl
url of the installation page: typically http://localhost:8080/manager |
(package private) Log |
log
logging object |
(package private) java.lang.String |
password
Password used to contact the Tomcat manager |
(package private) java.lang.String |
rootPath
Root deployment path |
(package private) java.lang.String |
user
User used to contact the Tomcat manager |
Constructor Summary | |
TomcatInstall()
Constructor |
Method Summary | |
void |
init(java.lang.String url,
Log log,
java.lang.String rootPath,
java.lang.String user,
java.lang.String password,
boolean isRelativeTarget)
ASInstallIF method. |
java.lang.String |
install(java.lang.String arch,
java.lang.String archPath)
ASInstallIF method. |
java.lang.String |
reload(java.lang.String arch)
ASInstallIF method. |
java.lang.String |
remove(java.lang.String arch)
ASInstallIF method. |
private java.lang.String |
run(java.lang.String url,
java.lang.String arch)
Calls the Tomcat manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String iurl
Log log
java.lang.String rootPath
java.lang.String user
java.lang.String password
boolean isRelativeTarget
Constructor Detail |
public TomcatInstall()
Method Detail |
public void init(java.lang.String url, Log log, java.lang.String rootPath, java.lang.String user, java.lang.String password, boolean isRelativeTarget)
init
in interface ASInstallIF
url
- url of the installation page/web service (AS installer dependent)log
- logging objectrootPath
- root deployment pathuser
- used to contact the Tomcat managerpassword
- used to contact the Tomcat managerisRelativeTarget
- true if the archPath in install method is relativepublic java.lang.String install(java.lang.String arch, java.lang.String archPath)
install
in interface ASInstallIF
arch
- path of the Web applicationarchPath
- directory of the Web application
public java.lang.String reload(java.lang.String arch)
reload
in interface ASInstallIF
arch
- path of the Web application
public java.lang.String remove(java.lang.String arch)
remove
in interface ASInstallIF
arch
- path of the Web application
private java.lang.String run(java.lang.String url, java.lang.String arch)
url
- url and command sent to the managerarch
- archive name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |