public class FileSystemWebAppRegistry extends WebAppRegistry
FileSystemWebAppRegistry
is an implementation
of WebAppRegistry. This class scans a list of
files/directories to configure the registry.
Each file/dir is assumed to contain a WebApp. Currently
this will only work if there is an WEB_INF/application.xml
file present in each dir.
This class may be used to create property files for use
by StaticWebAppRegistry. For example, to create a property files
for QuincyFunds (Dynamo/DSSJ2EEDemo/j2ee-apps):
java atg.service.webappregistry.FileSystemWebAppRegistry quincy.ear -c
For a directory, replace the quincy.ear file with QuincyFunds.WebAppRegistry
, WebAppServletContextListener
,
WebAppStaticRegistry
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
REGISTRY_FILE_NAME |
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
FileSystemWebAppRegistry() |
Modifier and Type | Method and Description |
---|---|
java.io.File[] |
getDeployedApps()
Get the value of DeployedApps.
|
static java.lang.String |
getNodeTypeName(org.w3c.dom.Node node) |
java.util.Map |
getWebApps()
Get the Map of currently deployed web applications
|
static void |
main(java.lang.String[] pArgs)
Test method.
|
static void |
printNode(org.w3c.dom.Node node,
java.lang.String indent) |
void |
register(java.io.File pApp)
It is assumed that this is a list of directories, that
each contain a single web application or they are
ear/war files.
|
void |
saveRegistryPropFile(java.lang.String pPath,
java.lang.String pFile,
boolean pPropListOnly) |
void |
setDeployedApps(java.io.File[] pDeployedApps)
It is assumed that this is a list of directories, that
each contain a single web application or they are
ear/war files.
|
void |
setWebApps(java.util.Map pWebApps) |
addListener, createAdminServlet, doStartService, doStopService, getHiddenWebApps, getSiteHttpServerName, getSiteHttpServerPort, getUrl, getUrl, getWebAppByContextRoot, getWebAppByName, getWebAppByProperty, isHiddenWebApp, register, removeListener, removeWebApp, savePropertyFilesToDir, sendEvent, setHiddenWebApps, setSiteHttpServerName, setSiteHttpServerPort, toString, unregister
addLogListener, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String REGISTRY_FILE_NAME
public java.util.Map getWebApps()
WebAppRegistry
getWebApps
in class WebAppRegistry
Map
of deployed WebAppspublic void setWebApps(java.util.Map pWebApps)
public java.io.File[] getDeployedApps()
public void setDeployedApps(java.io.File[] pDeployedApps)
v
- Value to assign to DeployedApps.public void register(java.io.File pApp)
v
- Value to assign to DeployedApps.public static java.lang.String getNodeTypeName(org.w3c.dom.Node node)
public static void printNode(org.w3c.dom.Node node, java.lang.String indent)
public static void main(java.lang.String[] pArgs) throws WebAppRegistryException
WebAppRegistryException
public void saveRegistryPropFile(java.lang.String pPath, java.lang.String pFile, boolean pPropListOnly)