public class JettyWebAppContext extends WebAppContext
WebAppContext.ContextServletContextHandler.Decorator, ServletContextHandler.JspConfig, ServletContextHandler.JspPropertyGroup, ServletContextHandler.TagLibContextHandler.AliasCheck, ContextHandler.ApproveAliases, ContextHandler.ApproveNonExistentDirectoryAliases, ContextHandler.ApprovePathPrefixAliases, ContextHandler.ApproveSameSuffixAliases, ContextHandler.Availability, ContextHandler.NoContextAbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerContainer.InheritedListener, Container.Listener__dftServerClasses, __dftSystemClasses, BASETEMPDIR, DEFAULT_CONFIGURATION_CLASSES, ERROR_PAGE, SERVER_SRV_CLASSES, SERVER_SYS_CLASSES, TEMPDIR, WEB_DEFAULTS_XML_decorators, _defaultSecurityHandlerClass, _jspConfig, _options, _securityHandler, _servletHandler, _sessionHandler, NO_SECURITY, NO_SESSIONS, SECURITY, SESSIONS_scontext, MANAGED_ATTRIBUTES, SERVLET_MAJOR_VERSION, SERVLET_MINOR_VERSION_nextScope, _outerScope_handler| Constructor and Description |
|---|
JettyWebAppContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
addPattern(String s,
String pattern) |
void |
doStart()
Starts the managed lifecycle beans in the order they were added.
|
void |
doStop()
Stops the managed lifecycle beans in the reverse order they were added.
|
boolean |
getBaseAppFirst() |
File |
getClasses() |
List<File> |
getClassPathFiles() |
String |
getContainerIncludeJarPattern() |
String |
getJettyEnvXml() |
List<Overlay> |
getOverlays() |
Resource |
getResource(String uriInContext) |
Set<String> |
getResourcePaths(String path) |
File |
getTestClasses() |
String |
getWebInfIncludeJarPattern() |
List<File> |
getWebInfLib() |
void |
setBaseAppFirst(boolean value) |
void |
setClasses(File dir) |
void |
setContainerIncludeJarPattern(String pattern) |
void |
setJettyEnvXml(String jettyEnvXml) |
void |
setOverlays(List<Overlay> overlays)
Ordered list of wars to overlay on top of the current project.
|
void |
setResourceBases(String[] resourceBases)
This method is provided as a convenience for jetty maven plugin configuration
|
void |
setTestClasses(File dir) |
void |
setWebInfIncludeJarPattern(String pattern) |
void |
setWebInfLib(List<File> jars) |
addEventListener, addOverrideDescriptor, addServerClass, addSystemClass, configure, destroy, getConfigurationClasses, getConfigurations, getCurrentWebAppContext, getDefaultConfigurationClasses, getDefaultsDescriptor, getDefaultServerClasses, getDefaultSystemClasses, getDescriptor, getExtraClasspath, getMetaData, getOverrideDescriptor, getOverrideDescriptors, getPermissions, getResourceAlias, getResourceAliases, getServerClasses, getSystemClasses, getTempDirectory, getUnavailableException, getWar, getWebInf, isAllowDuplicateFragmentNames, isConfigurationDiscovered, isCopyWebDir, isCopyWebInf, isDistributable, isExtractWAR, isLogUrlOnStart, isParentLoaderPriority, isServerClass, isSystemClass, isThrowUnavailableOnStartupException, loadConfigurations, loadSystemClasses, postConfigure, preConfigure, prependServerClass, prependSystemClass, removeEventListener, removeResourceAlias, setAllowDuplicateFragmentNames, setClassLoader, setConfigurationClasses, setConfigurationClasses, setConfigurationDiscovered, setConfigurations, setContextWhiteList, setCopyWebDir, setCopyWebInf, setDefaultsDescriptor, setDescriptor, setDisplayName, setDistributable, setEventListeners, setExtraClasspath, setExtractWAR, setLogUrlOnStart, setOverrideDescriptor, setOverrideDescriptors, setParentLoaderPriority, setPermissions, setResourceAlias, setResourceAliases, setServer, setServerClasses, setServletSecurity, setSystemClasses, setTempDirectory, setThrowUnavailableOnStartupException, setWar, startContext, toStringaddDecorator, addFilter, addFilter, addFilter, addRoles, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, dynamicHolderAdded, getDecorators, getDefaultSecurityHandlerClass, getSecurityHandler, getServletHandler, getSessionHandler, newSecurityHandler, newServletHandler, newSessionHandler, setDecorators, setDefaultSecurityHandlerClass, setSecurityHandler, setServletHandler, setSessionHandleraddAliasCheck, addLocaleEncoding, addProgrammaticListener, addVirtualHosts, checkContext, checkManagedAttribute, clearAttributes, doHandle, doScope, dump, getAliasChecks, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getContextHandler, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getLocaleEncoding, getLogger, getMaxFormContentSize, getMaxFormKeys, getMimeTypes, getProtectedTargets, getResourceBase, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isAvailable, isCompactPath, isProgrammaticListener, isProtectedTarget, isShutdown, loadClass, newResource, newResource, removeAttribute, removeVirtualHosts, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setContextPath, setErrorHandler, setInitParameter, setLogger, setManagedAttribute, setMaxFormContentSize, setMaxFormKeys, setMimeTypes, setProtectedTargets, setResourceBase, setVirtualHosts, setWelcomeFiles, shutdownhandle, never, nextHandle, nextScopeexpandChildren, getHandler, getHandlers, setHandlerexpandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClassdumpThis, getServeraddBean, addBean, addBean, contains, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, setBeans, setStopTimeout, start, unmanage, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewResourceaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic void setContainerIncludeJarPattern(String pattern)
public String getContainerIncludeJarPattern()
public String getWebInfIncludeJarPattern()
public void setWebInfIncludeJarPattern(String pattern)
public void setJettyEnvXml(String jettyEnvXml)
public String getJettyEnvXml()
public void setClasses(File dir)
public File getClasses()
public void setTestClasses(File dir)
public File getTestClasses()
public void setOverlays(List<Overlay> overlays)
overlays - public void setBaseAppFirst(boolean value)
public boolean getBaseAppFirst()
public void setResourceBases(String[] resourceBases)
resourceBases - Array of resources strings to set as a ResourceCollection. Each resource string may be a comma separated list of resourcesResourcepublic void doStart()
throws Exception
ContainerLifeCycledoStart in class WebAppContextExceptionAbstractHandler.doStart()public void doStop()
throws Exception
ContainerLifeCycledoStop in class WebAppContextExceptionContextHandler.doStop()public Resource getResource(String uriInContext) throws MalformedURLException
getResource in class WebAppContextMalformedURLExceptionpublic Set<String> getResourcePaths(String path)
getResourcePaths in class ContextHandlerCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.