|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandlerContainer
org.eclipse.jetty.server.handler.HandlerWrapper
org.eclipse.jetty.server.handler.ScopedHandler
org.eclipse.jetty.server.handler.ContextHandler
org.eclipse.jetty.servlet.ServletContextHandler
org.eclipse.jetty.webapp.WebAppContext
org.mortbay.jetty.plugin.JettyWebAppContext
public class JettyWebAppContext
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 |
---|
__dftServerClasses, __dftSystemClasses, BASETEMPDIR, ERROR_PAGE, SERVER_CONFIG, SERVER_SRV_CLASSES, SERVER_SYS_CLASSES, TEMPDIR, WEB_DEFAULTS_XML |
Fields inherited from class org.eclipse.jetty.servlet.ServletContextHandler |
---|
_decorators, _defaultSecurityHandlerClass, _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 |
getJettyEnvXml()
|
java.util.List<org.eclipse.jetty.util.resource.Resource> |
getOverlays()
|
org.eclipse.jetty.util.resource.Resource |
getResource(java.lang.String uriInContext)
|
java.util.Set<java.lang.String> |
getResourcePaths(java.lang.String path)
|
boolean |
getUnpackOverlays()
|
java.util.List<java.io.File> |
getWebInfClasses()
|
java.util.List<java.io.File> |
getWebInfLib()
|
void |
setClassPathFiles(java.util.List<java.io.File> classpathFiles)
|
void |
setJettyEnvXml(java.lang.String jettyEnvXml)
|
void |
setOverlays(java.util.List<org.eclipse.jetty.util.resource.Resource> overlays)
|
void |
setResourceBases(java.lang.String[] resourceBases)
This method is provided as a conveniance for jetty maven plugin configuration |
void |
setUnpackOverlays(boolean unpackOverlays)
|
void |
setWebInfClasses(java.util.List<java.io.File> dirs)
|
void |
setWebInfLib(java.util.List<java.io.File> jars)
|
Methods inherited from class org.eclipse.jetty.webapp.WebAppContext |
---|
addEventListener, addOverrideDescriptor, addServerClass, addSystemClass, configure, dumpUrl, getConfigurationClasses, getConfigurations, getCurrentWebAppContext, getDefaultConfigurationClasses, getDefaultsDescriptor, getDescriptor, getExtraClasspath, getMetaData, getOverrideDescriptor, getOverrideDescriptors, getPermissions, getResourceAlias, getResourceAliases, getServerClasses, getSystemClasses, getTempDirectory, getUnavailableException, getWar, getWebInf, isAllowDuplicateFragmentNames, isConfigurationDiscovered, isCopyWebDir, isCopyWebInf, isDistributable, isExtractWAR, isLogUrlOnStart, isParentLoaderPriority, isProtectedTarget, isServerClass, isSystemClass, loadConfigurations, loadSystemClasses, postConfigure, preConfigure, removeResourceAlias, setAllowDuplicateFragmentNames, setClassLoader, setConfigurationClasses, setConfigurationDiscovered, setConfigurations, setCopyWebDir, setCopyWebInf, setDefaultsDescriptor, setDescriptor, setDisplayName, setDistributable, setEventListeners, setExtraClasspath, setExtractWAR, setLogUrlOnStart, setOverrideDescriptor, setOverrideDescriptors, setParentLoaderPriority, setPermissions, setResourceAlias, setResourceAliases, setServer, setServerClasses, setSystemClasses, setTempDirectory, setTemplate, setWar, startContext, toString |
Methods inherited from class org.eclipse.jetty.servlet.ServletContextHandler |
---|
addDecorator, addFilter, addFilter, addFilter, addFilter, addFilter, addFilter, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, getDecorators, getDefaultSecurityHandlerClass, getSecurityHandler, getServletHandler, getSessionHandler, newSecurityHandler, newServletHandler, newSessionHandler, setDecorators, setDefaultSecurityHandlerClass, setSecurityHandler, setServletHandler, setSessionHandler |
Methods inherited from class org.eclipse.jetty.server.handler.ContextHandler |
---|
addLocaleEncoding, checkContext, checkManagedAttribute, clearAttributes, doHandle, doScope, dump, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getConnectorNames, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getLocaleEncoding, getLogger, getMaxFormContentSize, getMimeTypes, getResourceBase, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isAliases, isAvailable, isCompactPath, isShutdown, loadClass, newResource, newResource, removeAttribute, setAliases, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setConnectorNames, setContextPath, setErrorHandler, setInitParameter, 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, getNestedHandlerByClass, setHandler |
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer |
---|
dumpHandlers, expandHandler, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass |
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler |
---|
destroy, dump, 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.webapp.WebAppClassLoader.Context |
---|
newResource |
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 |
---|
public JettyWebAppContext() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean getUnpackOverlays()
public void setUnpackOverlays(boolean unpackOverlays)
public void setClassPathFiles(java.util.List<java.io.File> classpathFiles)
public java.util.List<java.io.File> getClassPathFiles()
public void setOverlays(java.util.List<org.eclipse.jetty.util.resource.Resource> overlays)
public java.util.List<org.eclipse.jetty.util.resource.Resource> getOverlays()
public void setJettyEnvXml(java.lang.String jettyEnvXml)
public java.lang.String getJettyEnvXml()
public void setWebInfClasses(java.util.List<java.io.File> dirs)
public java.util.List<java.io.File> getWebInfClasses()
public void setWebInfLib(java.util.List<java.io.File> jars)
public void setResourceBases(java.lang.String[] resourceBases)
resourceBases
- Array of resources strings to set as a ResourceCollection
. Each resource string may be a comma separated list of resourcesResource
public java.util.List<java.io.File> getWebInfLib()
public void doStart() throws java.lang.Exception
doStart
in class org.eclipse.jetty.webapp.WebAppContext
java.lang.Exception
public void doStop() throws java.lang.Exception
doStop
in class org.eclipse.jetty.webapp.WebAppContext
java.lang.Exception
public org.eclipse.jetty.util.resource.Resource getResource(java.lang.String uriInContext) throws java.net.MalformedURLException
getResource
in class org.eclipse.jetty.webapp.WebAppContext
java.net.MalformedURLException
public java.util.Set<java.lang.String> getResourcePaths(java.lang.String path)
getResourcePaths
in class org.eclipse.jetty.server.handler.ContextHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |