org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl Class Reference

Inherits org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Inheritance diagram for org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void doStart () throws ServiceException
String getJOnASClassPath (ClassLoader webClassLoader)
String getDefaultHost () throws JWebContainerServiceException
String getDefaultHttpPort () throws JWebContainerServiceException
String getDefaultHttpsPort () throws JWebContainerServiceException

Protected Member Functions

void doInit (javax.naming.Context ctx) throws ServiceException
void doStop () throws ServiceException
void doRegisterWar (Context ctx) throws JWebContainerServiceException
void doUnRegisterWar (Context ctx) throws JWebContainerServiceException
void updateServerInfos ()

Detailed Description

This class provides an implementation of the Jetty service (as web container service).
Author:
Miroslav Halas (initial developer)

Florent Benoit

Definition at line 61 of file JettyJWebContainerServiceImpl.java.


Member Function Documentation

void org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doInit javax.naming.Context  ctx  )  throws ServiceException [protected]
 

Initialize the Jetty service.

Parameters:
ctx the configuration context of the service.
Exceptions:
ServiceException if the initialization failed.

Definition at line 88 of file JettyJWebContainerServiceImpl.java.

References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getLogger().

Here is the call graph for this function:

void org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doRegisterWar Context  ctx  )  throws JWebContainerServiceException [protected, virtual]
 

Create the environment and delegate the operation to the implementation of the web container.

Parameters:
ctx the context which contains the configuration in order to deploy a WAR.
Exceptions:
JWebContainerServiceException if the registration of the WAR failed.

Implements org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 236 of file JettyJWebContainerServiceImpl.java.

References org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.getJOnASClassPath(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getLogger().

Here is the call graph for this function:

void org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doStart  )  throws ServiceException
 

Start the Jetty service in a new thread

Exceptions:
ServiceException if the startup failed.

Reimplemented from org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 114 of file JettyJWebContainerServiceImpl.java.

References org.objectweb.jonas.service.ServiceManager.getInstance(), org.objectweb.jonas.jmx.JmxService.getJmxServer(), org.objectweb.jonas.service.ServiceManager.getJmxService(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getLogger().

Here is the call graph for this function:

void org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doStop  )  throws ServiceException [protected]
 

Stop the Jetty service.

Exceptions:
ServiceException if the stop failed.

Reimplemented from org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 177 of file JettyJWebContainerServiceImpl.java.

References org.objectweb.jonas.service.ServiceManager.getInstance(), org.objectweb.jonas.jmx.JmxService.getJmxServer(), org.objectweb.jonas.service.ServiceManager.getJmxService(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getLogger().

Here is the call graph for this function:

void org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doUnRegisterWar Context  ctx  )  throws JWebContainerServiceException [protected, virtual]
 

Delegate the unregistration to the implementation of the web container.

Parameters:
ctx the context which contains the configuration in order to undeploy a WAR.
Exceptions:
JWebContainerServiceException if the unregistration failed.

Implements org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 395 of file JettyJWebContainerServiceImpl.java.

References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.getLogger().

Here is the call graph for this function:

String org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.getDefaultHost  )  throws JWebContainerServiceException [virtual]
 

Return the Default host name of the web container.

Returns:
the Default host name of the web container.
Exceptions:
JWebContainerServiceException when default host cannot be resolved (multiple services).

Implements org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 494 of file JettyJWebContainerServiceImpl.java.

String org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.getDefaultHttpPort  )  throws JWebContainerServiceException [virtual]
 

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 default HTTP port cannot be resolved (multiple occurences).

Implements org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 516 of file JettyJWebContainerServiceImpl.java.

String org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.getDefaultHttpsPort  )  throws JWebContainerServiceException [virtual]
 

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 default HTTPS port cannot be resolved (multiple occurences).

Implements org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 541 of file JettyJWebContainerServiceImpl.java.

String org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.getJOnASClassPath ClassLoader  webClassLoader  ) 
 

Return the classpath which can be used for jsp compiling by Jasper. This classpath is extracted from the web classloader.

Parameters:
webClassLoader the ClassLoader used for extract URLs.
Returns:
the jonas classpath which is useful for JSP compiling.

Definition at line 356 of file JettyJWebContainerServiceImpl.java.

Referenced by org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doRegisterWar().

void org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.updateServerInfos  )  [protected, virtual]
 

Update info of the serverName and serverVersion

Implements org.objectweb.jonas.web.AbsJWebContainerServiceImpl.

Definition at line 475 of file JettyJWebContainerServiceImpl.java.

References org.objectweb.jonas.web.AbsJWebContainerServiceImpl.setServerName(), and org.objectweb.jonas.web.AbsJWebContainerServiceImpl.setServerVersion().

Here is the call graph for this function:


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