org.objectweb.jonas.web.JWebContainerService Interface Reference

Inherited by org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerService.

Inheritance diagram for org.objectweb.jonas.web.JWebContainerService:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void deployWars (Context ctx) throws JWebContainerServiceException
String getWebappsDirectory ()
void registerWarMBean (String fileName) throws RemoteException, JWebContainerServiceException
boolean isWarLoaded (String fileName)
void unRegisterWarMBean (String fileName) throws RemoteException, JWebContainerServiceException

Package Functions

void unDeployWars (URL[] urls)
void removeCache (ClassLoader earClassLoader)
String getDefaultHost () throws JWebContainerServiceException
String getDefaultHttpPort () throws JWebContainerServiceException
String getDefaultHttpsPort () throws JWebContainerServiceException
URLClassLoader getClassLoader (URL warURL, String earAppName, ClassLoader ejbClassLoader) throws JWebContainerServiceException
ClassLoader getContextLinkedClassLoader (URL warURL)
War getWar (URL url)

Detailed Description

JOnAS WEB Container Service interface. This interface provides a description of a web container service.
Author:
Ludovic Bert

Florent Benoit

Definition at line 45 of file JWebContainerService.java.


Member Function Documentation

void org.objectweb.jonas.web.JWebContainerService.deployWars Context  ctx  )  throws JWebContainerServiceException
 

Deploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). (This method is only used for the ear applications, not for the web applications).

Parameters:
ctx the context containing the configuration to deploy the wars.
This context contains the following parameters :
  • urls the list of the urls of the wars to deploy.
  • earURL the URL of the ear application file.
  • parentClassLoader the parent classLoader of the wars.
  • earClassLoader the ear classLoader of the j2ee app.
  • altDDs the optional URI of deployment descriptor.
  • contextRoots the optional context root of the wars.
Exceptions:
JWebContainerServiceException if an error occurs during the deployment.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

URLClassLoader org.objectweb.jonas.web.JWebContainerService.getClassLoader URL  warURL,
String  earAppName,
ClassLoader  ejbClassLoader
throws JWebContainerServiceException [package]
 

Return the class loader of the given warURL. Unpack the associated war and build the loader if it's not in the cache.

Parameters:
warURL the url of the war we want to get the loader
earAppName 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.
Returns:
the class loader of the given warURL.
Exceptions:
JWebContainerServiceException if the process failed.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.deployWebServices().

ClassLoader org.objectweb.jonas.web.JWebContainerService.getContextLinkedClassLoader URL  warURL  )  [package]
 

Parameters:
warURL the URL of the webapp
Returns:
Returns the ClassLoader used to link a JNDI environnment to a webapp

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

Referenced by org.objectweb.jonas.ws.AbsWebServicesServiceImpl.completeWSDeployment().

String org.objectweb.jonas.web.JWebContainerService.getDefaultHost  )  throws JWebContainerServiceException [package]
 

Return the Default host name of the web container.

Returns:
the Default host name of the web container.
Exceptions:
JWebContainerServiceException when it is impossible to get the Default Host.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

String org.objectweb.jonas.web.JWebContainerService.getDefaultHttpPort  )  throws JWebContainerServiceException [package]
 

Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set).

Returns:
the Default HTTP port number of the web container.
Exceptions:
JWebContainerServiceException when it is impossible to get the Default Http port.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

String org.objectweb.jonas.web.JWebContainerService.getDefaultHttpsPort  )  throws JWebContainerServiceException [package]
 

Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set).

Returns:
the Default HTTPS port number of the web container.
Exceptions:
JWebContainerServiceException when it is impossible to get the Default Https port.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

War org.objectweb.jonas.web.JWebContainerService.getWar URL  url  )  [package]
 

Get the war identified by its URL (.war).

Parameters:
url the URL of the war to get.
Returns:
the war indentified by its URL, or null if the war is not found.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

String org.objectweb.jonas.web.JWebContainerService.getWebappsDirectory  ) 
 

Return the WebApps directory.

Returns:
The WebApps directory

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

boolean org.objectweb.jonas.web.JWebContainerService.isWarLoaded String  fileName  ) 
 

Test if the specified filename is already deployed or not

Parameters:
fileName the name of the war file.
Returns:
true if the war is deployed, else false.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

Referenced by org.objectweb.jonas.server.J2EEServer.isWarDeployed().

void org.objectweb.jonas.web.JWebContainerService.registerWarMBean String  fileName  )  throws RemoteException, JWebContainerServiceException
 

Register a WAR by delegating the operation to the registerWar() method. This is used for JMX management.

Parameters:
fileName the name of the war to deploy.
Exceptions:
RemoteException if rmi call failed.
JWebContainerServiceException if the registration failed.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

Referenced by org.objectweb.jonas.server.J2EEServer.deployWar().

void org.objectweb.jonas.web.JWebContainerService.removeCache ClassLoader  earClassLoader  )  [package]
 

Make a cleanup of the cache of deployment descriptor. This method must be invoked after the ear deployment by the EAR service. the deployment of an ear by .

Parameters:
earClassLoader the ClassLoader of the ear application to remove from the cache.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

void org.objectweb.jonas.web.JWebContainerService.unDeployWars URL[]  urls  )  [package]
 

Undeploy the given wars of an ear file with the specified parent classloader (ejb classloader or ear classloader). (This method is only used for the ear applications, not for the war applications).

Parameters:
urls the list of the urls of the wars to undeploy.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

void org.objectweb.jonas.web.JWebContainerService.unRegisterWarMBean String  fileName  )  throws RemoteException, JWebContainerServiceException
 

Unregister a WAR by delegating the operation to the unRegisterWar() method. This is used for JMX management.

Parameters:
fileName the name of the war to undeploy.
Exceptions:
RemoteException if rmi call failed.
JWebContainerServiceException if the unregistration failed.

Implemented in org.objectweb.jonas.web.AbsJWebContainerServiceImpl, org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.wrapper.CatalinaJWebContainerServiceWrapper.

Referenced by org.objectweb.jonas.server.J2EEServer.unDeployWar().


The documentation for this interface was generated from the following file:
Generated on Tue Feb 15 15:08:12 2005 for JOnAS by  doxygen 1.3.9.1