| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final char | |
| private final String | |
| private final String | |
| public static final String | |
| private final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | ContextName(String
The name to use as the basis for this object name, boolean If a .war or .xml file extension is present
at the end of the provided name should it be
removed? stripFileExtension)Creates an instance from a context name, display name, base name, directory name, WAR name or context.xml name. |
| public | ContextName(String
Context path to use path, String Context version to use version)Construct an instance from a path and version. |
| Modifier and Type | Method and Description |
|---|---|
| public static ContextName | Returns: theContextName generated from the given base nameThe path that ends in a base name path)Extract the final component of the given path which is assumed to be a
base name and generate a |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String |
| baseName | back to summary |
|---|---|
| private final String baseName | |
| FWD_SLASH_REPLACEMENT | back to summary |
|---|---|
| private static final char FWD_SLASH_REPLACEMENT | |
| name | back to summary |
|---|---|
| private final String name | |
| path | back to summary |
|---|---|
| private final String path | |
| ROOT_NAME | back to summary |
|---|---|
| public static final String ROOT_NAME | |
| version | back to summary |
|---|---|
| private final String version | |
| VERSION_MARKER | back to summary |
|---|---|
| private static final String VERSION_MARKER | |
| ContextName | back to summary |
|---|---|
| public 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 | back to summary |
|---|---|
| public ContextName(String path, String version) Construct an instance from a path and version. | |
| extractFromPath | back to summary |
|---|---|
| public static ContextName extractFromPath(String path) Extract the final component of the given path which is assumed to be a
base name and generate a
| |
| getBaseName | back to summary |
|---|---|
| public String getBaseName() | |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getPath | back to summary |
|---|---|
| public String getPath() | |
| getVersion | back to summary |
|---|---|
| public String getVersion() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |