public abstract class WebAppUtil
extends java.lang.Object
WebAppUtil
is a utility class for WebAppRegistry.
It has a static accessor for the WebAppRegistry object and has
several convenience methods for getting information from the
registry.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static boolean |
mLoggingDebug |
static boolean |
mLoggingError |
Constructor and Description |
---|
WebAppUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
deepCopy(java.util.Map pWebApps) |
static java.lang.String |
getWebAppContext(java.lang.String pWebAppName)
Get the web app context root given the web app name
|
static java.util.Map |
getWebAppContextAndPathFromSrc(java.lang.String srcString)
Return the context root and path from a string formatted as WebAppName:/path/in/app.
|
static java.lang.String |
getWebAppContextFromSrc(java.lang.String srcString)
Returns the web app context root given a string of the format WebAppName:/path/in/app
|
static java.lang.Object |
getWebAppContextRegistry()
static accessor for the WebAppContextRegistry
|
static void |
printWebApps(java.util.Map pWebApps,
java.lang.String label)
printWebApps Prints out the Map to the debug log |
static java.lang.String |
trimFileName(java.lang.String pPath,
char c)
Describe
trimFileName method here. |
public static final java.lang.String CLASS_VERSION
public static boolean mLoggingDebug
public static boolean mLoggingError
public static java.lang.String getWebAppContext(java.lang.String pWebAppName)
pWebAppName
- the name of the web apppublic static java.lang.String getWebAppContextFromSrc(java.lang.String srcString)
srcString
- public static java.util.Map getWebAppContextAndPathFromSrc(java.lang.String srcString)
srcString
- public static java.lang.Object getWebAppContextRegistry()
public static java.lang.String trimFileName(java.lang.String pPath, char c)
trimFileName
method here.pPath
- a String
valuec
- a char
valueString
valuepublic static void printWebApps(java.util.Map pWebApps, java.lang.String label)
printWebApps
Prints out the Map to the debug logpWebApps
- a Map
valuelabel
- a String
valuepublic static java.util.Map deepCopy(java.util.Map pWebApps)