|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JWebContainerService
JOnAS WEB Container Service interface. This interface provides a description of a web container service.
Method Summary | |
---|---|
void |
deployWars(Context ctx)
Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). |
URLClassLoader |
getClassLoader(URL warURL,
org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
ClassLoader ejbClassLoader)
Return the class loader of the given warURL. |
ClassLoader |
getContextLinkedClassLoader(URL warURL)
|
String |
getDefaultHost()
Return the Default host name of the web container. |
String |
getDefaultHttpPort()
Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set). |
String |
getDefaultHttpsPort()
Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set). |
boolean |
isWarDeployedByWorkName(String unpackName)
Test if the specified unpack name is already deployed or not. |
boolean |
isWarLoaded(String fileName)
Test if the specified filename is already deployed or not. |
void |
registerWar(String fileName)
Register a WAR by delegating the operation to the registerWar() method. |
void |
removeCache(ClassLoader earClassLoader)
Make a cleanup of the cache of deployment descriptor. |
void |
unDeployWars(URL[] urls)
Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). |
void |
unRegisterWar(String fileName)
Unregister a WAR by delegating the operation to the unRegisterWar() method. |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Method Detail |
---|
void deployWars(Context ctx) throws JWebContainerServiceException
ctx
- the context containing the configuration
to deploy the wars.JWebContainerServiceException
- if an error occurs during
the deployment.void unDeployWars(URL[] urls)
urls
- the list of the urls of the wars to undeploy.void removeCache(ClassLoader earClassLoader)
earClassLoader
- the ClassLoader of the ear application to
remove from the cache.String getDefaultHost() throws JWebContainerServiceException
JWebContainerServiceException
- when it is impossible to get the Default Host.String getDefaultHttpPort() throws JWebContainerServiceException
JWebContainerServiceException
- when it is impossible to get the Default Http port.String getDefaultHttpsPort() throws JWebContainerServiceException
JWebContainerServiceException
- when it is impossible to get the Default Https port.URLClassLoader getClassLoader(URL warURL, org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable, ClassLoader ejbClassLoader) throws JWebContainerServiceException
warURL
- the url of the war we want to get the loaderearDeployable
- the EAR deployable (could be null)
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.ClassLoader getContextLinkedClassLoader(URL warURL)
warURL
- the URL of the webapp
void registerWar(String fileName) throws RemoteException, JWebContainerServiceException
fileName
- the name of the war to deploy.
RemoteException
- if rmi call failed.
JWebContainerServiceException
- if the registration failed.boolean isWarLoaded(String fileName)
fileName
- the name of the war file.
void unRegisterWar(String fileName) throws RemoteException, JWebContainerServiceException
fileName
- the name of the war to undeploy.
RemoteException
- if rmi call failed.
JWebContainerServiceException
- if the unregistration failed.boolean isWarDeployedByWorkName(String unpackName)
unpackName
- the name of the ear file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |