public final class ContextName extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
String |
getBaseName() |
String |
getDisplayName() |
String |
getName() |
String |
getPath() |
String |
getVersion() |
String |
toString() |
public static final String ROOT_NAME
public 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?Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.