Inherited by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.
Inheritance diagram for org.objectweb.jonas.web.AbsJWebContainerServiceImpl:
Public Member Functions | |
URLClassLoader | getClassLoader (URL warURL, String earAppName, ClassLoader parentLoader) throws JWebContainerServiceException |
ClassLoader | getContextLinkedClassLoader (URL warURL) |
void | registerWarMBean (String fileName) throws RemoteException, JWebContainerServiceException |
void | unRegisterWarMBean (String fileName) throws RemoteException, JWebContainerServiceException |
void | deployWars (Context ctx) throws JWebContainerServiceException |
void | unDeployWars (URL[] urls) |
War | getWar (URL url) |
void | removeCache (ClassLoader earClassLoader) |
Integer | getCurrentNumberOfWars () |
List | getInstalledWars () throws Exception |
Set | getWarNames () |
boolean | isWarLoaded (String fileName) |
List | getDeployedWars () |
List | getDeployableWars () throws Exception |
List | getAutoloadDirectories () |
String | getWebappsDirectory () |
String | getServerName () |
String | getServerVersion () |
abstract String | getDefaultHost () throws JWebContainerServiceException |
abstract String | getDefaultHttpPort () throws JWebContainerServiceException |
abstract String | getDefaultHttpsPort () throws JWebContainerServiceException |
Static Public Attributes | |
final String | DESCRIPTORS = "jonas.service.web.descriptors" |
final String | AUTOLOADDIR = "jonas.service.web.autoloaddir" |
final String | PARSINGWITHVALIDATION = "jonas.service.web.parsingwithvalidation" |
final String | CLASS = "jonas.service.web.class" |
Protected Member Functions | |
void | doInit (Context ctx) throws ServiceException |
void | doStart () throws ServiceException |
void | doStop () throws ServiceException |
abstract void | doRegisterWar (Context ctx) throws JWebContainerServiceException |
abstract void | doUnRegisterWar (Context ctx) throws JWebContainerServiceException |
URL | getUnpackDir (URL warURL, String earAppName) throws JWebContainerServiceException |
abstract void | updateServerInfos () |
ContainerNaming | getNaming () |
MBeanServer | getMbeanServer () |
void | setServerName (String serverName) |
void | setServerVersion (String serverVersion) |
Static Protected Member Functions | |
Logger | getLogger () |
Static Protected Attributes | |
final String | JONAS_BASE = JProp.getJonasBase() |
final String | WEBAPPS_DIR = JONAS_BASE + File.separator + "webapps" |
final String | WORK_DIR = JProp.getWorkDir() |
final String | WORK_WEBAPPS_DIR = WORK_DIR + File.separator + "webapps" |
Ludovic Bert (J2EE 1.3)
Nicolas Van Caneghem (exploded ear)
Michel-Ange Anton (contributor)
Definition at line 98 of file AbsJWebContainerServiceImpl.java.
|
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).
Implements org.objectweb.jonas.web.JWebContainerService. Definition at line 1181 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.naming.CompNamingContext.rebind(). |
Here is the call graph for this function:
|
Initialize the service.
Definition at line 220 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.AUTOLOADDIR, org.objectweb.jonas.web.AbsJWebContainerServiceImpl.DESCRIPTORS, org.objectweb.jonas.server.LoaderManager.getAppsLoader(), org.objectweb.jonas.common.JProp.getInstance(), org.objectweb.jonas.service.ServiceManager.getInstance(), org.objectweb.jonas.service.ServiceManager.getJmxService(), org.objectweb.jonas.common.JProp.getValue(), org.objectweb.jonas.service.ServiceManager.getWebServicesService(), org.objectweb.jonas.web.AbsJWebContainerServiceImpl.PARSINGWITHVALIDATION, and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WEBAPPS_DIR. |
Here is the call graph for this function:
|
Create the environment and delegate the operation to the implementation of the web container.
Implemented in org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. |
|
Start the service.
Reimplemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. Definition at line 350 of file AbsJWebContainerServiceImpl.java. |
|
Stop the service.
Reimplemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. Definition at line 395 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.War.getWarURL(), and org.objectweb.jonas.web.War.isInEarCase(). |
Here is the call graph for this function:
|
Delegate the unregistration to the implementation of the web container.
Implemented in org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. |
|
Return the list of "autoload" directories for web applications.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1590 of file AbsJWebContainerServiceImpl.java. |
|
Return the class loader of the given warURL. Unpack the associated war and build the loader if it's not in the cache.
Implements org.objectweb.jonas.web.JWebContainerService. Definition at line 511 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WebLoaderHolder.getJonasWebLoader(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getUnpackDir(). Referenced by org.objectweb.jonas.adm.Adm.listModules(). |
Here is the call graph for this function:
|
Implements org.objectweb.jonas.web.JWebContainerService. Definition at line 560 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WebLoaderHolder.getEnvWebLoader(). |
Here is the call graph for this function:
|
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1424 of file AbsJWebContainerServiceImpl.java. |
|
Return the Default host name of the web container.
Implements org.objectweb.jonas.web.JWebContainerService. Implemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. |
|
Return the Default HTTP port number of the web container (can be null if multiple HTTP connector has been set).
Implements org.objectweb.jonas.web.JWebContainerService. Implemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. |
|
Return the Default HTTPS port number of the web container (can be null if multiple HTTPS connector has been set).
Implements org.objectweb.jonas.web.JWebContainerService. Implemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. |
|
Return the list of installed web applications ready to deploy.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1580 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getDeployedWars(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getInstalledWars(). Referenced by org.objectweb.jonas.adm.Adm.listModules(). |
Here is the call graph for this function:
|
Return the list of all loaded web applications.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1565 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.War.getWarURL(). Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getDeployableWars(), and org.objectweb.jonas.adm.Adm.listModules(). |
Here is the call graph for this function:
|
Return the list of installed web applications. The WAR files or the directories with expanded web application are searched in JONAS_BASE/webapps and all webapps directories 'autoload'.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1436 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WEBAPPS_DIR. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getDeployableWars(). |
|
|
Definition at line 1688 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doInit(), org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doRegisterWar(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.removeContext(). |
|
Definition at line 1681 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.doStart(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.setGlobalNamingResources(). |
|
Gets the name of the server which is the web container
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1622 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.updateServerInfos(). |
Here is the call graph for this function:
|
Gets the version of the server which is the web container
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1633 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.updateServerInfos(). |
Here is the call graph for this function:
|
Return the URL where warURL has been unpacked.
Definition at line 457 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WORK_WEBAPPS_DIR. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getClassLoader(). |
|
Get the war identified by its URL (.war).
Implements org.objectweb.jonas.web.JWebContainerService. Definition at line 1290 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.War.equals(), and org.objectweb.jonas.web.War.getWarURL(). Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.isWarLoaded(). |
Here is the call graph for this function:
|
This method is added temporarily. It will disapear when Wars will have their associated MBeans (when Wars will become manageable)
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1453 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.War.getWarURL(). |
Here is the call graph for this function:
|
Return the WebApps directory.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1607 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WEBAPPS_DIR. |
|
Test if the specified filename is already deployed or not
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Definition at line 1526 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getWar(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.WEBAPPS_DIR. |
Here is the call graph for this function:
|
Register a WAR by delegating the operation to the registerWar() method. This is used for JMX management.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Reimplemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl. Definition at line 866 of file AbsJWebContainerServiceImpl.java. |
|
Make a cleanup of the cache of deployment descriptor. This method must be invoked after the ear deployment by the EAR service.
Implements org.objectweb.jonas.web.JWebContainerService. Definition at line 1325 of file AbsJWebContainerServiceImpl.java. |
|
Definition at line 1695 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.updateServerInfos(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.updateServerInfos(). |
|
Definition at line 1702 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.updateServerInfos(), and org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl.updateServerInfos(). |
|
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).
Implements org.objectweb.jonas.web.JWebContainerService. Definition at line 1266 of file AbsJWebContainerServiceImpl.java. References org.objectweb.jonas.naming.CompNamingContext.rebind(). |
Here is the call graph for this function:
|
Unregister a WAR by delegating the operation to the unRegisterWar() method. This is used for JMX management.
Implements org.objectweb.jonas.web.AbsJWebContainerServiceImplMBean. Reimplemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl. Definition at line 1146 of file AbsJWebContainerServiceImpl.java. |
|
Update info of the serverName and serverVersion Implemented in org.objectweb.jonas.web.catalina50.CatalinaJWebContainerServiceImpl, and org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getServerName(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getServerVersion(). |
|
Web service configuration properties : Autdeployed the files in these directories Definition at line 130 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(). |
|
Web service configuration properties : Implementation of the web container Definition at line 146 of file AbsJWebContainerServiceImpl.java. |
|
Web service configuration properties : Files deployed Definition at line 124 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(). |
|
The name of the JONAS_BASE directory. Definition at line 104 of file AbsJWebContainerServiceImpl.java. |
|
Web service configuration properties : Xml parsing with validation Definition at line 135 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(). |
|
The name of the webapps directory. Definition at line 109 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(), org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getInstalledWars(), org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getWebappsDirectory(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.isWarLoaded(). |
|
The name of the working directory. Definition at line 114 of file AbsJWebContainerServiceImpl.java. |
|
The name of the working apps directory. Definition at line 119 of file AbsJWebContainerServiceImpl.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getUnpackDir(). |