|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JOnAS WEB Container Service interface. This interface provides a description of a web container 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.net.URLClassLoader |
getClassLoader(java.net.URL warURL,
java.lang.String earAppName,
java.lang.ClassLoader ejbClassLoader)
Return the class loader of the given warURL. |
java.lang.ClassLoader |
getContextLinkedClassLoader(java.net.URL warURL)
|
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). |
War |
getWar(java.net.URL url)
Get the war identified by its URL (.war). |
java.lang.String |
getWebappsDirectory()
Return the WebApps directory. |
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 |
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 interface org.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
Method Detail |
public void deployWars(javax.naming.Context ctx) throws JWebContainerServiceException
ctx
- the context containing the configuration
to deploy the wars.JWebContainerServiceException
- if an error occurs during
the deployment.public void unDeployWars(java.net.URL[] urls)
urls
- the list of the urls of the wars to undeploy.public void removeCache(java.lang.ClassLoader earClassLoader)
earClassLoader
- the ClassLoader of the ear application to
remove from the cache.public java.lang.String getDefaultHost() throws JWebContainerServiceException
JWebContainerServiceException
- when it is impossible to get the Default Host.public java.lang.String getDefaultHttpPort() throws JWebContainerServiceException
JWebContainerServiceException
- when it is impossible to get the Default Http port.public java.lang.String getDefaultHttpsPort() throws JWebContainerServiceException
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 ejbClassLoader) throws JWebContainerServiceException
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.ejbClassLoader
- the ejb class loader of the ear.
May be null in non ear case.
JWebContainerServiceException
- if the process failed.public java.lang.ClassLoader getContextLinkedClassLoader(java.net.URL warURL)
warURL
- the URL of the webapp
public War getWar(java.net.URL url)
url
- the URL of the war to get.
public java.lang.String getWebappsDirectory()
public void registerWarMBean(java.lang.String fileName) throws java.rmi.RemoteException, JWebContainerServiceException
fileName
- the name of the war to deploy.
java.rmi.RemoteException
- if rmi call failed.
JWebContainerServiceException
- if the registration failed.public boolean isWarLoaded(java.lang.String fileName)
fileName
- the name of the war file.
public void unRegisterWarMBean(java.lang.String fileName) throws java.rmi.RemoteException, JWebContainerServiceException
fileName
- the name of the war to undeploy.
java.rmi.RemoteException
- if rmi call failed.
JWebContainerServiceException
- if the unregistration failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |