|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter
org.objectweb.jonas.service.AbsServiceImpl
org.objectweb.jonas.web.AbsJWebContainerServiceImpl
org.ow2.jonas.web.jetty6.Jetty6Service
public class Jetty6Service
This class provides an implementation of the Jetty service (as web container service).
Nested Class Summary |
---|
Nested classes/interfaces 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, jmx, JONAS_BASE, PARSINGWITHVALIDATION, SINGLE_WORK_WEBAPPS_DIR_SUFFIX, WEBAPPS_DIR, WORK_DIR, WORK_WEBAPPS_DIR |
Fields inherited from class org.objectweb.jonas.management.reconfig.emitter.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
Jetty6Service()
|
Method Summary | |
---|---|
protected void |
doInit(Context ctx)
Initialize the Jetty service. |
protected void |
doRegisterWar(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(Context ctx)
Delegate the unregistration to the implementation of the web container. |
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). |
String |
getJOnASClassPath(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, getContextFactory, getContextLinkedClassLoader, getCurrentNumberOfWars, getDeployableWars, getDeployedWars, getInstalledWars, getLogger, getNaming, getServerName, getServerVersion, getUnpackDir, getWar, getWarNames, getWarsDirectory, isWarLoaded, registerWar, removeCache, setServerName, setServerVersion, unDeployWars, unRegisterWar |
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.reconfig.emitter.ReconfigEmitter |
---|
initLogger, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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.web.JWebContainerService |
---|
deployWars, getClassLoader, getContextLinkedClassLoader, isWarLoaded, registerWar, removeCache, unDeployWars, unRegisterWar |
Methods inherited from interface org.objectweb.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Constructor Detail |
---|
public Jetty6Service()
Method Detail |
---|
protected void doInit(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(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 String getJOnASClassPath(ClassLoader webClassLoader)
webClassLoader
- the ClassLoader used for extract URLs.
protected void doUnRegisterWar(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 String getDefaultHost() throws JWebContainerServiceException
getDefaultHost
in interface JWebContainerService
getDefaultHost
in class AbsJWebContainerServiceImpl
JWebContainerServiceException
- when default host cannot be
resolved (multiple services).public String getDefaultHttpPort() throws JWebContainerServiceException
getDefaultHttpPort
in interface JWebContainerService
getDefaultHttpPort
in class AbsJWebContainerServiceImpl
JWebContainerServiceException
- when default HTTP port cannot be
resolved (multiple occurences).public 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 |