|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.service.webappregistry.WebAppRegistry
public abstract class WebAppRegistry
WebAppRegistry
is an abstract class that
implements the basic properties and methods for a registry
that contains deployed web applications. Discovery of the
web applications is left to the particular implementation
of this class.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
WebAppRegistry()
|
Method Summary | |
---|---|
static void |
addListener(WebAppListener pListener)
addListener |
protected javax.servlet.Servlet |
createAdminServlet()
Creates and returns a new Servlet that will administer this service. |
void |
doStartService()
Called after the service has been created, placed into the naming hierarchy, and initialized with its configured property values. |
void |
doStopService()
doStopService |
static java.lang.String[] |
getHiddenWebApps()
Get the value of HiddenWebApps. |
java.lang.String |
getSiteHttpServerName()
Returns the name of the server configured to serve HTTP requests. |
int |
getSiteHttpServerPort()
|
java.lang.String |
getUrl(java.lang.String pAppName)
|
java.lang.String |
getUrl(WebApp pWebApp)
|
WebApp |
getWebAppByContextRoot(java.lang.String pContextRoot)
|
WebApp |
getWebAppByName(java.lang.String pName)
|
WebApp |
getWebAppByProperty(java.lang.String pPropName,
java.lang.String pPropValue)
|
abstract java.util.Map |
getWebApps()
Get the Map of currently deployed web applications |
static boolean |
isHiddenWebApp(java.lang.String pName)
|
void |
register(java.lang.Object pObj)
registerWebApp |
static void |
removeListener(WebAppListener pListener)
removeListener |
boolean |
removeWebApp(java.lang.String pName)
|
void |
savePropertyFilesToDir(java.lang.String pPath)
|
static void |
setHiddenWebApps(java.lang.String[] v)
Set the value of HiddenWebApps. |
void |
setSiteHttpServerName(java.lang.String pSiteHttpServerName)
Sets the name of the server configured to serve HTTP requests. |
void |
setSiteHttpServerPort(int pSiteHttpServerPort)
|
java.lang.String |
toString()
|
void |
unregister(java.lang.Object pObj)
|
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
Constructor Detail |
---|
public WebAppRegistry()
Method Detail |
---|
public java.lang.String getSiteHttpServerName()
public void setSiteHttpServerName(java.lang.String pSiteHttpServerName)
public void setSiteHttpServerPort(int pSiteHttpServerPort)
public int getSiteHttpServerPort()
public static java.lang.String[] getHiddenWebApps()
public static void setHiddenWebApps(java.lang.String[] v)
v
- Value to assign to HiddenWebApps.public static boolean isHiddenWebApp(java.lang.String pName)
public abstract java.util.Map getWebApps()
Map
of deployed WebAppspublic void register(java.lang.Object pObj)
registerWebApp
pObj
- a Object
of WebAppspublic void unregister(java.lang.Object pObj)
public boolean removeWebApp(java.lang.String pName)
public WebApp getWebAppByName(java.lang.String pName)
public WebApp getWebAppByContextRoot(java.lang.String pContextRoot)
public WebApp getWebAppByProperty(java.lang.String pPropName, java.lang.String pPropValue)
public void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the service had a problem
starting uppublic void doStopService() throws ServiceException
doStopService
doStopService
in class GenericService
ServiceException
- if an error occursprotected javax.servlet.Servlet createAdminServlet()
createAdminServlet
in class GenericService
Servlet
valuepublic static void addListener(WebAppListener pListener)
addListener
pListener
- a WebAppListener
valuepublic static void removeListener(WebAppListener pListener)
removeListener
pListener
- a WebAppListener
valuepublic java.lang.String toString()
toString
in class java.lang.Object
public void savePropertyFilesToDir(java.lang.String pPath)
public java.lang.String getUrl(java.lang.String pAppName)
public java.lang.String getUrl(WebApp pWebApp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |