|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas.web.wrapper.catalina50.CatalinaJWebContainerServiceWrapper
Wrap the Catalina 5.0 Web Container Service because Catalina use Digester to parse its server.xml
| Constructor Summary | |
CatalinaJWebContainerServiceWrapper()
Construct the instance and init the service. |
|
| Method Summary | |
void |
deployWars(javax.naming.Context ctx)
Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). |
java.util.List |
getAutoloadDirectories()
Return the list of "autoload" directories for web applications. |
java.net.URLClassLoader |
getClassLoader(java.net.URL warURL,
java.lang.String earAppName,
java.lang.ClassLoader parentLoader)
Return the class loader of the given warURL. |
java.lang.ClassLoader |
getContextLinkedClassLoader(java.net.URL url)
|
java.lang.Integer |
getCurrentNumberOfWars()
|
java.lang.String |
getDefaultHost()
Return the Default host name of the web container. |
java.lang.String |
getDefaultHttpPort()
Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set). |
java.lang.String |
getDefaultHttpsPort()
Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set). |
java.util.List |
getDeployableWars()
Return the list of installed web applications ready to deploy. |
java.util.List |
getDeployedWars()
Return the list of all loaded web applications. |
java.util.List |
getInstalledWars()
Return the list of installed web applications. |
java.lang.String |
getName()
|
java.lang.String |
getServerName()
Gets the name of the server which is the web container |
java.lang.String |
getServerVersion()
Gets the version of the server which is the web container |
War |
getWar(java.net.URL url)
Get the war identified by its URL (.war). |
java.util.Set |
getWarNames()
This method is added temporarily. |
java.lang.String |
getWebappsDirectory()
Return the WebApps directory. |
void |
init(javax.naming.Context ctx)
Initialize the Catalina service. |
boolean |
isStarted()
|
boolean |
isTomcatStarted()
The server is started ? |
boolean |
isWarLoaded(java.lang.String fileName)
Test if the specified filename is already deployed or not |
void |
registerWarMBean(java.lang.String fileName)
Register a WAR by delegating the operation to the registerWar() method. |
void |
removeCache(java.lang.ClassLoader earClassLoader)
Make a cleanup of the cache of deployment descriptor. |
void |
setName(java.lang.String name)
Set the service's name |
void |
start()
Start the Catalina service in a new thread |
void |
stop()
Stop the Catalina service. |
void |
unDeployWars(java.net.URL[] urls)
Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). |
void |
unRegisterWarMBean(java.lang.String fileName)
Unregister a WAR by delegating the operation to the unRegisterWar() method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CatalinaJWebContainerServiceWrapper()
throws ServiceException
ServiceException - when Catalina Loader cannot be found| Method Detail |
public void deployWars(javax.naming.Context ctx)
throws JWebContainerServiceException
deployWars in interface JWebContainerServicectx - the context containing the configuration
to deploy the wars.JWebContainerServiceException - if an error occurs during
the deployment.public War getWar(java.net.URL url)
getWar in interface JWebContainerServiceurl - the URL of the war to get.
public void unDeployWars(java.net.URL[] urls)
unDeployWars in interface JWebContainerServiceurls - the list of the urls of the wars to undeploy.public void removeCache(java.lang.ClassLoader earClassLoader)
removeCache in interface JWebContainerServiceearClassLoader - the ClassLoader of the ear application to
remove from the cache.
public void registerWarMBean(java.lang.String fileName)
throws java.rmi.RemoteException,
JWebContainerServiceException
registerWarMBean in interface JWebContainerServicefileName - the name of the war to deploy.
java.rmi.RemoteException - if rmi call failed.
JWebContainerServiceException - if the registration failed.
public void unRegisterWarMBean(java.lang.String fileName)
throws java.rmi.RemoteException,
JWebContainerServiceException
unRegisterWarMBean in interface JWebContainerServicefileName - the name of the war to undeploy.
java.rmi.RemoteException - if rmi call failed.
JWebContainerServiceException - if the unregistration failed.
public java.util.List getInstalledWars()
throws java.lang.Exception
getInstalledWars in interface AbsJWebContainerServiceImplMBeanjava.lang.Exception - if the list can't be retrievedpublic java.lang.Integer getCurrentNumberOfWars()
getCurrentNumberOfWars in interface AbsJWebContainerServiceImplMBeanpublic java.util.Set getWarNames()
getWarNames in interface AbsJWebContainerServiceImplMBeanpublic boolean isWarLoaded(java.lang.String fileName)
isWarLoaded in interface JWebContainerServicefileName - the name of the war file.
public java.lang.String getServerName()
getServerName in interface AbsJWebContainerServiceImplMBeanpublic java.lang.String getServerVersion()
getServerVersion in interface AbsJWebContainerServiceImplMBeanpublic java.util.List getDeployedWars()
getDeployedWars in interface AbsJWebContainerServiceImplMBean
public java.util.List getDeployableWars()
throws java.lang.Exception
getDeployableWars in interface AbsJWebContainerServiceImplMBeanjava.lang.Exception - if the list can't be retrievedpublic java.util.List getAutoloadDirectories()
getAutoloadDirectories in interface AbsJWebContainerServiceImplMBeanpublic java.lang.String getWebappsDirectory()
getWebappsDirectory in interface JWebContainerService
public void init(javax.naming.Context ctx)
throws ServiceException
init in interface Servicectx - the configuration context of the service.
ServiceException - if the initialization failed.Service.init(javax.naming.Context)
public void start()
throws ServiceException
start in interface ServiceServiceException - if the startup failed.Service.start()
public void stop()
throws ServiceException
stop in interface ServiceServiceException - if the stop failed.Service.stop()public boolean isStarted()
isStarted in interface Servicepublic void setName(java.lang.String name)
setName in interface Servicename - to setpublic java.lang.String getName()
getName in interface Service
public java.lang.String getDefaultHost()
throws JWebContainerServiceException
getDefaultHost in interface JWebContainerServiceJWebContainerServiceException - when it is impossible to get the Default Host.
public java.lang.String getDefaultHttpPort()
throws JWebContainerServiceException
getDefaultHttpPort in interface JWebContainerServiceJWebContainerServiceException - when it is impossible to get the Default Http port.
public java.lang.String getDefaultHttpsPort()
throws JWebContainerServiceException
getDefaultHttpsPort in interface JWebContainerServiceJWebContainerServiceException - when it is impossible to get the Default Https port.
public java.net.URLClassLoader getClassLoader(java.net.URL warURL,
java.lang.String earAppName,
java.lang.ClassLoader parentLoader)
throws JWebContainerServiceException
getClassLoader in interface JWebContainerServicewarURL - the url of the war we want to get the loaderearAppName - the name of the ear application containing
the war. May be null in non ear case.parentLoader - the ejb class loader of the ear.
May be null in non ear case.
JWebContainerServiceException - if the process failed.public boolean isTomcatStarted()
isTomcatStarted in interface CatalinaJWebContainerServicepublic java.lang.ClassLoader getContextLinkedClassLoader(java.net.URL url)
getContextLinkedClassLoader in interface JWebContainerServiceurl - the URL of the webapp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||