public class StaticWebAppRegistry extends WebAppRegistry
StaticWebAppRegistry
is an implementation
of WebAppRegistry. This class read a list of WebApp components
or a Map of display-name=context-root mappings to configure the
registry of deployed WebApps. There needs to be a property file
for each PreconfiguredWebApp. If the contextRootMap is used, then
you just need to set the property inside the property file.
Example of property file settings
-------------------------------------------------------------
contextRootMap=\
Quincy Funds J2EE DAF Demo=QuincyFunds,\
MotorpriseJSP=Motorprise
Or for preConfiguredWebApps:
preConfiguredWebApps=\
/atg/registry/webappregistry/QuincyFundsWebApp,\
/atg/registry/webappregistry/MotorpriseWebApp
Example of WebApp property file: QuincyFundsWebApp.properties
-------------------------------------------------------------
$class=atg.service.webappregistry.WebApp
properties=\
display-name=QuincyFunds,\
appState=started,\
context-root=QuincyFunds,\
web-uri=web_app,\
path=d:/work/5.6/Dynamo/DSSJ2EEDemo/j2ee-apps/QuincyFunds
-------------------------------------------------------------WebApp
WebAppRegistry
MergedWebAppRegistry
NucleusServletWebAppRegistry
ServletContextListenerWebAppRegistery
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
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 |
---|
StaticWebAppRegistry() |
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getContextRootMap()
Gets the mContextRootMap property
|
WebApp[] |
getPreConfiguredWebApps() |
java.util.Map |
getWebApps()
Get the Map of currently deployed web applications
|
void |
setContextRootMap(java.util.Properties pProperties)
Sets the mContextRootMap property
In prop file it should look like:
contextRootMap=\
QuincyFunds J2EE Demo=QuincyFunds,\
MotorpriseJSP=Motorprise
|
void |
setPreConfiguredWebApps(WebApp[] 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 void setContextRootMap(java.util.Properties pProperties)
public java.util.Properties getContextRootMap()
public WebApp[] getPreConfiguredWebApps()
public void setPreConfiguredWebApps(WebApp[] pWebApps)
public java.util.Map getWebApps()
WebAppRegistry
getWebApps
in class WebAppRegistry
Map
of deployed WebApps