public final class ContextName
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROOT_NAME |
Constructor and Description |
---|
ContextName(java.lang.String name,
boolean stripFileExtension)
Creates an instance from a context name, display name, base name,
directory name, WAR name or context.xml name.
|
ContextName(java.lang.String path,
java.lang.String version)
Construct an instance from a path and version.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseName() |
java.lang.String |
getDisplayName() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.lang.String |
getVersion() |
java.lang.String |
toString() |
public static final java.lang.String ROOT_NAME
public ContextName(java.lang.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(java.lang.String path, java.lang.String version)
path
- Context path to useversion
- Context version to usepublic java.lang.String getBaseName()
public java.lang.String getPath()
public java.lang.String getVersion()
public java.lang.String getName()
public java.lang.String getDisplayName()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.