|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasspathhelper.tomcat.listener.TomcatProperties
Object describing the instance of Tomcat (path and
location) that should be used by TomcatClassLoaderService
when obtaining classloader information.
| Field Summary | |
static java.io.File |
DEFAULT_HOME_DIR
|
static java.lang.String |
VERSION_4_X
|
static java.lang.String |
VERSION_5_X
|
| Constructor Summary | |
protected |
TomcatProperties()
Default constructor (required for serialization). |
|
TomcatProperties(java.lang.String homePath,
java.lang.String theVersion)
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
|
static java.io.File |
getDefaultTomcatHome()
The default value for Tomcat home. |
static java.lang.String |
getDefaultVersion()
Returns the default version value. |
java.io.File |
getTomcatHome()
|
java.lang.String |
getVersion()
The tomcat version string. |
static java.lang.String[] |
getVersionValues()
Helper method that returns a list of valid versions. |
int |
hashCode()
|
void |
setTomcatHome(java.io.File homePathDir)
Sets the home path of the tomcat instance. |
void |
setTomcatHome(java.lang.String homePath)
Sets the home path of the tomcat instance. |
void |
setVersion(java.lang.String theVersion)
Sets the tomcat version. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String VERSION_4_X
public static java.lang.String VERSION_5_X
public static java.io.File DEFAULT_HOME_DIR
| Constructor Detail |
protected TomcatProperties()
public TomcatProperties(java.lang.String homePath,
java.lang.String theVersion)
homePath - The home path to the tomcat installation.theVersion - The version of tomcat.
java.lang.IllegalArgumentException - If either parameter is
invalid.| Method Detail |
public static java.lang.String getDefaultVersion()
public static java.io.File getDefaultTomcatHome()
public static java.lang.String[] getVersionValues()
VERSION_XXX
constants.
VERSION_4_X,
VERSION_5_Xpublic java.io.File getTomcatHome()
public void setTomcatHome(java.lang.String homePath)
homePath - The absolute path to the tomcat
root directory.
java.lang.IllegalArgumentException - If the homePath
isn't a directory or doesn't exist.public void setTomcatHome(java.io.File homePathDir)
homePathDir - A file object representing
the tomcat root directory.public java.lang.String getVersion()
VERSION_XXX values.
VERSION_4_X,
VERSION_5_Xpublic void setVersion(java.lang.String theVersion)
VERSION_XXX values.
theVersion - The version.VERSION_4_X,
VERSION_5_Xpublic int hashCode()
public boolean equals(java.lang.Object o)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||