org.mortbay.jetty.plugin
Class JettyWebAppContext

java.lang.Object
  extended by org.eclipse.jetty.util.component.AbstractLifeCycle
      extended by org.eclipse.jetty.server.handler.AbstractHandler
          extended by org.eclipse.jetty.server.handler.AbstractHandlerContainer
              extended by org.eclipse.jetty.server.handler.HandlerWrapper
                  extended by org.eclipse.jetty.server.handler.ScopedHandler
                      extended by org.eclipse.jetty.server.handler.ContextHandler
                          extended by org.eclipse.jetty.servlet.ServletContextHandler
                              extended by org.eclipse.jetty.webapp.WebAppContext
                                  extended by org.mortbay.jetty.plugin.JettyWebAppContext
All Implemented Interfaces:
org.eclipse.jetty.server.Handler, org.eclipse.jetty.server.HandlerContainer, org.eclipse.jetty.server.Server.Graceful, org.eclipse.jetty.util.Attributes, org.eclipse.jetty.util.component.LifeCycle

public class JettyWebAppContext
extends org.eclipse.jetty.webapp.WebAppContext

JettyWebAppContext Extends the WebAppContext to specialize for the maven environment. We pass in the list of files that should form the classpath for the webapp when executing in the plugin, and any jetty-env.xml file that may have been configured.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.webapp.WebAppContext
org.eclipse.jetty.webapp.WebAppContext.Context
 
Nested classes/interfaces inherited from class org.eclipse.jetty.servlet.ServletContextHandler
org.eclipse.jetty.servlet.ServletContextHandler.Decorator
 
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
 
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.webapp.WebAppContext
BASETEMPDIR, ERROR_PAGE, SERVER_CONFIG, SERVER_SRV_CLASSES, SERVER_SYS_CLASSES, TEMPDIR, WEB_DEFAULTS_XML
 
Fields inherited from class org.eclipse.jetty.servlet.ServletContextHandler
_created, _decorator, _defaultSecurityHandlerClass, _jspConfig, _options, _restrictedContextListeners, _securityHandler, _servletHandler, _sessionHandler, NO_SECURITY, NO_SESSIONS, SECURITY, SESSIONS
 
Fields inherited from class org.eclipse.jetty.server.handler.ContextHandler
_scontext, MANAGED_ATTRIBUTES
 
Fields inherited from class org.eclipse.jetty.server.handler.ScopedHandler
_nextScope, _outerScope
 
Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
_handler
 
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
Constructor Summary
JettyWebAppContext()
           
 
Method Summary
 void doStart()
           
 void doStop()
           
 java.util.List<java.io.File> getClassPathFiles()
           
 java.lang.String getContainerIncludeJarPattern()
           
 java.lang.String getJettyEnvXml()
           
 java.util.List<org.eclipse.jetty.util.resource.Resource> getOverlays()
           
 boolean getUnpackOverlays()
           
 void setClassPathFiles(java.util.List<java.io.File> classpathFiles)
           
 void setContainerIncludeJarPattern(java.lang.String pattern)
           
 void setJettyEnvXml(java.lang.String jettyEnvXml)
           
 void setOverlays(java.util.List<org.eclipse.jetty.util.resource.Resource> overlays)
           
 void setUnpackOverlays(boolean unpackOverlays)
           
 
Methods inherited from class org.eclipse.jetty.webapp.WebAppContext
addEventListener, addServerClass, addSystemClass, dumpUrl, getConfigurationClasses, getConfigurations, getCurrentWebAppContext, getDefaultConfigurationClasses, getDefaultsDescriptor, getDescriptor, getExtraClasspath, getOverrideDescriptor, getPermissions, getResource, getResourceAlias, getResourceAliases, getServerClasses, getSystemClasses, getTempDirectory, getUnavailableException, getWar, getWebInf, isConfigurationDiscovered, isCopyWebDir, isDistributable, isExtractWAR, isLogUrlOnStart, isParentLoaderPriority, isProtectedTarget, isServerClass, isSystemClass, loadConfigurations, removeResourceAlias, setClassLoader, setConfigurationClasses, setConfigurationDiscovered, setConfigurations, setCopyWebDir, setDefaultsDescriptor, setDescriptor, setDisplayName, setDistributable, setEventListeners, setExtraClasspath, setExtractWAR, setLogUrlOnStart, setOverrideDescriptor, setParentLoaderPriority, setPermissions, setResourceAlias, setResourceAliases, setServer, setServerClasses, setSystemClasses, setTempDirectory, setWar, startContext, toString
 
Methods inherited from class org.eclipse.jetty.servlet.ServletContextHandler
addFilter, addFilter, addFilter, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, getDecorator, getDefaultSecurityHandlerClass, getSecurityHandler, getServletHandler, getSessionHandler, isCreatedInstance, newSecurityHandler, newServletHandler, newSessionHandler, restrictEventListener, setDecorator, setDefaultSecurityHandlerClass, setSecurityHandler, setServletHandler, setSessionHandler
 
Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler
addLocaleEncoding, checkContext, checkManagedAttribute, clearAttributes, doHandle, doScope, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getConnectorNames, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getHosts, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getLocaleEncoding, getLogger, getMaxFormContentSize, getMimeTypes, getResourceBase, getResourcePaths, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isAliases, isAvailable, isCompactPath, isShutdown, loadClass, newResource, newResource, removeAttribute, setAliases, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setConnectorNames, setContextPath, setErrorHandler, setHosts, setLogger, setManagedAttribute, setMaxFormContentSize, setMimeTypes, setResourceBase, setShutdown, setVirtualHosts, setWelcomeFiles
 
Methods inherited from class org.eclipse.jetty.server.handler.ScopedHandler
handle, never, nextHandle, nextScope
 
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
expandChildren, getHandler, getHandlers, setHandler
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer
dump, expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler
destroy, dump, getServer
 
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.server.Handler
destroy, getServer, handle
 
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

Constructor Detail

JettyWebAppContext

public JettyWebAppContext()
                   throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setContainerIncludeJarPattern

public void setContainerIncludeJarPattern(java.lang.String pattern)

getContainerIncludeJarPattern

public java.lang.String getContainerIncludeJarPattern()

getUnpackOverlays

public boolean getUnpackOverlays()

setUnpackOverlays

public void setUnpackOverlays(boolean unpackOverlays)

setClassPathFiles

public void setClassPathFiles(java.util.List<java.io.File> classpathFiles)

getClassPathFiles

public java.util.List<java.io.File> getClassPathFiles()

setOverlays

public void setOverlays(java.util.List<org.eclipse.jetty.util.resource.Resource> overlays)

getOverlays

public java.util.List<org.eclipse.jetty.util.resource.Resource> getOverlays()

setJettyEnvXml

public void setJettyEnvXml(java.lang.String jettyEnvXml)

getJettyEnvXml

public java.lang.String getJettyEnvXml()

doStart

public void doStart()
             throws java.lang.Exception
Overrides:
doStart in class org.eclipse.jetty.webapp.WebAppContext
Throws:
java.lang.Exception

doStop

public void doStop()
            throws java.lang.Exception
Overrides:
doStop in class org.eclipse.jetty.webapp.WebAppContext
Throws:
java.lang.Exception


Copyright © 1995-2010 Mort Bay Consulting. All Rights Reserved.