|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.web.wrapper.catalina50.CatalinaJWebContainerServiceWrapper
public class 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 foundMethod Detail |
---|
public void deployWars(javax.naming.Context ctx) throws JWebContainerServiceException
deployWars
in interface JWebContainerService
ctx
- 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 JWebContainerService
url
- the URL of the war to get.
public void unDeployWars(java.net.URL[] urls)
unDeployWars
in interface JWebContainerService
urls
- the list of the urls of the wars to undeploy.public void removeCache(java.lang.ClassLoader earClassLoader)
removeCache
in interface JWebContainerService
earClassLoader
- 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 AbsJWebContainerServiceImplMBean
registerWarMBean
in interface JWebContainerService
fileName
- 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 AbsJWebContainerServiceImplMBean
unRegisterWarMBean
in interface JWebContainerService
fileName
- 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 AbsJWebContainerServiceImplMBean
java.lang.Exception
- if the list can't be retrievedpublic java.lang.Integer getCurrentNumberOfWars()
getCurrentNumberOfWars
in interface AbsJWebContainerServiceImplMBean
public java.util.Set getWarNames()
getWarNames
in interface AbsJWebContainerServiceImplMBean
public boolean isWarLoaded(java.lang.String fileName)
isWarLoaded
in interface AbsJWebContainerServiceImplMBean
isWarLoaded
in interface JWebContainerService
fileName
- the name of the war file.
public java.lang.String getServerName()
getServerName
in interface AbsJWebContainerServiceImplMBean
public java.lang.String getServerVersion()
getServerVersion
in interface AbsJWebContainerServiceImplMBean
public java.util.List getDeployedWars()
getDeployedWars
in interface AbsJWebContainerServiceImplMBean
public java.util.List getDeployableWars() throws java.lang.Exception
getDeployableWars
in interface AbsJWebContainerServiceImplMBean
java.lang.Exception
- if the list can't be retrievedpublic java.util.List getAutoloadDirectories()
getAutoloadDirectories
in interface AbsJWebContainerServiceImplMBean
public java.lang.String getWebappsDirectory()
getWebappsDirectory
in interface AbsJWebContainerServiceImplMBean
getWebappsDirectory
in interface JWebContainerService
public void init(javax.naming.Context ctx) throws ServiceException
init
in interface Service
ctx
- the configuration context of the service.
ServiceException
- if the initialization failed.Service.init(javax.naming.Context)
public void start() throws ServiceException
start
in interface Service
ServiceException
- if the startup failed.Service.start()
public void stop() throws ServiceException
stop
in interface Service
ServiceException
- if the stop failed.Service.stop()
public boolean isStarted()
isStarted
in interface Service
public void setName(java.lang.String name)
setName
in interface Service
name
- to setpublic java.lang.String getName()
getName
in interface Service
public java.lang.String getDefaultHost() throws JWebContainerServiceException
getDefaultHost
in interface JWebContainerService
JWebContainerServiceException
- when it is impossible to get the Default Host.public java.lang.String getDefaultHttpPort() throws JWebContainerServiceException
getDefaultHttpPort
in interface JWebContainerService
JWebContainerServiceException
- when it is impossible to get the Default Http port.public java.lang.String getDefaultHttpsPort() throws JWebContainerServiceException
getDefaultHttpsPort
in interface JWebContainerService
JWebContainerServiceException
- 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 JWebContainerService
warURL
- 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 CatalinaJWebContainerService
public java.lang.ClassLoader getContextLinkedClassLoader(java.net.URL url)
getContextLinkedClassLoader
in interface JWebContainerService
url
- the URL of the webapp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |