|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.objectweb.jonas.management.ReconfigDispatcher org.objectweb.jonas.service.AbsServiceImpl org.objectweb.jonas.web.AbsJWebContainerServiceImpl org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl
This class provides an implementation of the Jetty service (as web container service).
Nested Class Summary |
Nested classes inherited from class org.objectweb.jonas.web.AbsJWebContainerServiceImpl |
AbsJWebContainerServiceImpl.WebLoaderHolder |
Field Summary |
Fields inherited from class org.objectweb.jonas.web.AbsJWebContainerServiceImpl |
AUTOLOADDIR, CLASS, DESCRIPTORS, INEAR_WORK_WEBAPPS_DIR_SUFFIX, JONAS_BASE, PARSINGWITHVALIDATION, SINGLE_WORK_WEBAPPS_DIR_SUFFIX, WEBAPPS_DIR, WORK_DIR, WORK_WEBAPPS_DIR |
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
JettyJWebContainerServiceImpl()
|
Method Summary | |
protected void |
doInit(javax.naming.Context ctx)
Initialize the Jetty service. |
protected void |
doRegisterWar(javax.naming.Context ctx)
Create the environment and delegate the operation to the implementation of the web container. |
void |
doStart()
Start the Jetty service in a new thread |
protected void |
doStop()
Stop the Jetty service. |
protected void |
doUnRegisterWar(javax.naming.Context ctx)
Delegate the unregistration to the implementation of the web container. |
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). |
java.lang.String |
getJOnASClassPath(java.lang.ClassLoader webClassLoader)
Return the classpath which can be used for jsp compiling by Jasper. |
protected void |
updateServerInfos()
Update info of the serverName and serverVersion |
Methods inherited from class org.objectweb.jonas.web.AbsJWebContainerServiceImpl |
deployWars, getAutoloadDirectories, getClassLoader, getContextLinkedClassLoader, getCurrentNumberOfWars, getDeployableWars, getDeployedWars, getInstalledWars, getLogger, getMbeanServer, getNaming, getServerName, getServerVersion, getUnpackDir, getWar, getWarNames, getWebappsDirectory, isWarLoaded, registerWarMBean, removeCache, setServerName, setServerVersion, unDeployWars, unRegisterWarMBean |
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl |
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jonas.service.Service |
getName, init, isStarted, setName, start, stop |
Constructor Detail |
public JettyJWebContainerServiceImpl()
Method Detail |
protected void doInit(javax.naming.Context ctx) throws ServiceException
doInit
in class AbsJWebContainerServiceImpl
ctx
- the configuration context of the service.
ServiceException
- if the initialization failed.public void doStart() throws ServiceException
doStart
in class AbsJWebContainerServiceImpl
ServiceException
- if the startup failed.protected void doStop() throws ServiceException
doStop
in class AbsJWebContainerServiceImpl
ServiceException
- if the stop failed.protected void doRegisterWar(javax.naming.Context ctx) throws JWebContainerServiceException
doRegisterWar
in class AbsJWebContainerServiceImpl
ctx
- the context which contains the configuration in order to
deploy a WAR.
JWebContainerServiceException
- if the registration of the WAR
failed.public java.lang.String getJOnASClassPath(java.lang.ClassLoader webClassLoader)
webClassLoader
- the ClassLoader used for extract URLs.
protected void doUnRegisterWar(javax.naming.Context ctx) throws JWebContainerServiceException
doUnRegisterWar
in class AbsJWebContainerServiceImpl
ctx
- the context which contains the configuration in order to
undeploy a WAR.
JWebContainerServiceException
- if the unregistration failed.protected void updateServerInfos()
updateServerInfos
in class AbsJWebContainerServiceImpl
public java.lang.String getDefaultHost() throws JWebContainerServiceException
getDefaultHost
in interface JWebContainerService
getDefaultHost
in class AbsJWebContainerServiceImpl
JWebContainerServiceException
- when default host cannot be
resolved (multiple services).public java.lang.String getDefaultHttpPort() throws JWebContainerServiceException
getDefaultHttpPort
in interface JWebContainerService
getDefaultHttpPort
in class AbsJWebContainerServiceImpl
JWebContainerServiceException
- when default HTTP port cannot be
resolved (multiple occurences).public java.lang.String getDefaultHttpsPort() throws JWebContainerServiceException
getDefaultHttpsPort
in interface JWebContainerService
getDefaultHttpsPort
in class AbsJWebContainerServiceImpl
JWebContainerServiceException
- when default HTTPS port cannot be
resolved (multiple occurences).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |