|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.ow2.jonas.lib.reconfig.ReconfigEmitter org.ow2.jonas.lib.service.AbsServiceImpl org.ow2.jonas.web.base.BaseWebContainerService 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.ow2.jonas.web.base.BaseWebContainerService |
---|
BaseWebContainerService.WebLoaderHolder |
Field Summary |
---|
Fields inherited from class org.ow2.jonas.web.base.BaseWebContainerService |
---|
INEAR_WORK_WEBAPPS_DIR_SUFFIX, jmxService, JONAS_BASE, SINGLE_WORK_WEBAPPS_DIR_SUFFIX, WORK_DIR, WORK_WEBAPPS_DIR |
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
Jetty6Service()
Default constructor. |
Method Summary | |
---|---|
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. |
boolean |
isInternalContainerStarted()
Checks if the internal web container has been started. |
void |
startInternalWebContainer()
Starts the specific code for the web container implementation. |
protected void |
updateServerInfos()
Update info of the serverName and serverVersion. |
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Methods inherited from class org.ow2.jonas.lib.reconfig.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, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.web.JWebContainerService |
---|
deployWars, getClassLoader, getContextLinkedClassLoader, isWarDeployedByWorkName, isWarLoaded, registerWar, removeCache, unDeployWars, unRegisterWar |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Constructor Detail |
---|
public Jetty6Service()
Method Detail |
---|
public void doStart() throws ServiceException
doStart
in class BaseWebContainerService
ServiceException
- if the startup failed.public void startInternalWebContainer() throws JWebContainerServiceException
startInternalWebContainer
in class BaseWebContainerService
JWebContainerServiceException
- if container is not startedpublic boolean isInternalContainerStarted()
isInternalContainerStarted
in class BaseWebContainerService
protected void doStop() throws ServiceException
doStop
in class BaseWebContainerService
ServiceException
- if the stop failed.protected void doRegisterWar(Context ctx) throws JWebContainerServiceException
doRegisterWar
in class BaseWebContainerService
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 BaseWebContainerService
ctx
- the context which contains the configuration in order to
undeploy a WAR.
JWebContainerServiceException
- if the unregistration failed.protected void updateServerInfos()
updateServerInfos
in class BaseWebContainerService
public String getDefaultHost() throws JWebContainerServiceException
getDefaultHost
in interface JWebContainerService
getDefaultHost
in class BaseWebContainerService
JWebContainerServiceException
- when default host cannot be
resolved (multiple services).public String getDefaultHttpPort() throws JWebContainerServiceException
getDefaultHttpPort
in interface JWebContainerService
getDefaultHttpPort
in class BaseWebContainerService
JWebContainerServiceException
- when default HTTP port cannot be
resolved (multiple occurences).public String getDefaultHttpsPort() throws JWebContainerServiceException
getDefaultHttpsPort
in interface JWebContainerService
getDefaultHttpsPort
in class BaseWebContainerService
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 |