|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.util.ContextName
public final class ContextName
Utility class to manage context names so there is one place where the conversions between baseName, path and version take place.
Constructor Summary | |
---|---|
ContextName(String name)
Deprecated. Use ContextName(String, boolean) |
|
ContextName(String name,
boolean stripFileExtension)
Creates an instance from a context name, display name, base name, directory name, WAR name or context.xml name. |
|
ContextName(String path,
String version)
Construct an instance from a path and version. |
Method Summary | |
---|---|
String |
getBaseName()
|
String |
getDisplayName()
|
String |
getName()
|
String |
getPath()
|
String |
getVersion()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public ContextName(String name)
ContextName(String, boolean)
name
- The name to use as the basis for this objectpublic ContextName(String name, boolean stripFileExtension)
name
- The name to use as the basis for this objectstripFileExtension
- If a .war or .xml file extension is present
at the end of the provided name should it be
removed?public ContextName(String path, String version)
path
- Context path to useversion
- Context version to useMethod Detail |
---|
public String getBaseName()
public String getPath()
public String getVersion()
public String getName()
public String getDisplayName()
public String toString()
toString
in class Object
|
Apache Tomcat 7.0.54 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |