atg.service.webappregistry
Class WebAppUtil

java.lang.Object
  extended by atg.service.webappregistry.WebAppUtil

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.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static boolean mLoggingDebug
           
static boolean mLoggingError
           
 
Constructor Summary
WebAppUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values

mLoggingDebug

public static boolean mLoggingDebug

mLoggingError

public static boolean mLoggingError
Constructor Detail

WebAppUtil

public WebAppUtil()
Method Detail

getWebAppContext

public static java.lang.String getWebAppContext(java.lang.String pWebAppName)
Get the web app context root given the web app name

Parameters:
pWebAppName - the name of the web app
Returns:
the string that is the context root of the named web app or null if no webapp is found for that name

getWebAppContextFromSrc

public 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

Parameters:
srcString -
Returns:

getWebAppContextAndPathFromSrc

public static java.util.Map getWebAppContextAndPathFromSrc(java.lang.String srcString)
Return the context root and path from a string formatted as WebAppName:/path/in/app. The returned Map is keyed by "context" and "path".

Parameters:
srcString -
Returns:

getWebAppContextRegistry

public static java.lang.Object getWebAppContextRegistry()
static accessor for the WebAppContextRegistry


trimFileName

public static java.lang.String trimFileName(java.lang.String pPath,
                                            char c)
Describe trimFileName method here.

Parameters:
pPath - a String value
c - a char value
Returns:
a String value

printWebApps

public static void printWebApps(java.util.Map pWebApps,
                                java.lang.String label)
printWebApps Prints out the Map to the debug log

Parameters:
pWebApps - a Map value
label - a String value

deepCopy

public static java.util.Map deepCopy(java.util.Map pWebApps)