public class JettyWebAppContext extends WebAppContext
WebAppContext.Context
ServletContextHandler.Decorator, ServletContextHandler.JspConfig, ServletContextHandler.JspPropertyGroup, ServletContextHandler.ServletContainerInitializerCaller, ServletContextHandler.TagLib
ContextHandler.AliasCheck, ContextHandler.ApproveAliases, ContextHandler.ApproveNonExistentDirectoryAliases, ContextHandler.Availability, ContextHandler.ContextScopeListener, ContextHandler.StaticContext
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_CONFIGURATION_CLASSES |
__dftServerClasses, __dftSystemClasses, BASETEMPDIR, ERROR_PAGE, SERVER_SRV_CLASSES, SERVER_SYS_CLASSES, TEMPDIR, WEB_DEFAULTS_XML
_defaultSecurityHandlerClass, _gzipHandler, _jspConfig, _objFactory, _options, _securityHandler, _servletHandler, _sessionHandler, GZIP, NO_SECURITY, NO_SESSIONS, SECURITY, SESSIONS
_scontext, DEFAULT_LISTENER_TYPE_INDEX, EXTENDED_LISTENER_TYPE_INDEX, MANAGED_ATTRIBUTES, SERVLET_LISTENER_TYPES, 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 |
getQuickStartWebDescriptor() |
Resource |
getResource(String uriInContext) |
Set<String> |
getResourcePaths(String path) |
File |
getTestClasses() |
String |
getWebInfIncludeJarPattern() |
List<File> |
getWebInfLib() |
void |
initCDI() |
boolean |
isGenerateQuickStart() |
protected void |
loadConfigurations() |
void |
setBaseAppFirst(boolean value) |
void |
setClasses(File dir) |
void |
setContainerIncludeJarPattern(String pattern) |
void |
setGenerateQuickStart(boolean quickStart) |
void |
setJettyEnvXml(String jettyEnvXml) |
void |
setOverlays(List<Overlay> overlays)
Ordered list of wars to overlay on top of the current project.
|
protected void |
setQuickStartWebDescriptor(Resource quickStartWebXml) |
void |
setQuickStartWebDescriptor(String quickStartWebXml) |
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) |
protected void |
startWebapp() |
protected void |
stopWebapp() |
addEventListener, addOverrideDescriptor, addServerClass, addSystemClass, configure, destroy, dump, 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, isPersistTempDirectory, isServerClass, isSystemClass, isThrowUnavailableOnStartupException, loadSystemClasses, postConfigure, preConfigure, prependServerClass, prependSystemClass, removeEventListener, removeResourceAlias, runWithoutCheckingServerClasses, setAllowDuplicateFragmentNames, setClassLoader, setConfigurationClasses, setConfigurationClasses, setConfigurationDiscovered, setConfigurations, setContextWhiteList, setCopyWebDir, setCopyWebInf, setDefaultsDescriptor, setDescriptor, setDisplayName, setDistributable, setEventListeners, setExtraClasspath, setExtractWAR, setLogUrlOnStart, setOverrideDescriptor, setOverrideDescriptors, setParentLoaderPriority, setPermissions, setPersistTempDirectory, setResourceAlias, setResourceAliases, setServer, setServerClasses, setServletSecurity, setSystemClasses, setTempDirectory, setThrowUnavailableOnStartupException, setWar, startContext, stopContext, toString
addDecorator, addFilter, addFilter, addFilter, addRoles, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, dynamicHolderAdded, getDecorators, getDefaultSecurityHandlerClass, getGzipHandler, getObjectFactory, getSecurityHandler, getServletHandler, getSessionHandler, insertHandler, newSecurityHandler, newServletHandler, newSessionHandler, setDecorators, setDefaultSecurityHandlerClass, setGzipHandler, setHandler, setSecurityHandler, setServletHandler, setSessionHandler
addAliasCheck, addLocaleEncoding, addProgrammaticListener, addVirtualHosts, checkAlias, checkContext, checkContextPath, checkVirtualHost, clearAliasChecks, clearAttributes, doHandle, doScope, enterScope, exitScope, getAliasChecks, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getContextHandler, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getLocaleEncoding, getLocaleEncodings, getLogger, getMaxFormContentSize, getMaxFormKeys, getMimeTypes, getProtectedTargets, getResourceBase, getServerInfo, getServletContext, getVirtualHosts, getWelcomeFiles, handle, handle, isAvailable, isCompactPath, isProgrammaticListener, isProtectedTarget, isShutdown, isUsingSecurityManager, loadClass, newResource, newResource, newResource, removeAttribute, removeVirtualHosts, setAliasChecks, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setContextPath, setErrorHandler, setInitParameter, setLogger, setManagedAttribute, setMaxFormContentSize, setMaxFormKeys, setMimeTypes, setProtectedTargets, setResourceBase, setServerInfo, setUsingSecurityManager, setVirtualHosts, setWelcomeFiles, shutdown
handle, never, nextHandle, nextScope
expandChildren, getHandler, getHandlers
expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
dumpThis, getServer
addBean, addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
newResource
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public static final String[] DEFAULT_CONFIGURATION_CLASSES
public 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
- the list of overlayspublic void setBaseAppFirst(boolean value)
public boolean getBaseAppFirst()
public void setQuickStartWebDescriptor(String quickStartWebXml) throws Exception
Exception
protected void setQuickStartWebDescriptor(Resource quickStartWebXml)
public Resource getQuickStartWebDescriptor()
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 resourcesResource
public void setGenerateQuickStart(boolean quickStart)
public boolean isGenerateQuickStart()
protected void startWebapp() throws Exception
startWebapp
in class WebAppContext
Exception
protected void stopWebapp() throws Exception
stopWebapp
in class WebAppContext
Exception
public void doStart() throws Exception
ContainerLifeCycle
doStart
in class WebAppContext
Exception
AbstractHandler.doStart()
protected void loadConfigurations() throws Exception
loadConfigurations
in class WebAppContext
Exception
public void doStop() throws Exception
ContainerLifeCycle
doStop
in class WebAppContext
Exception
ContextHandler.doStop()
public Resource getResource(String uriInContext) throws MalformedURLException
getResource
in class WebAppContext
MalformedURLException
public Set<String> getResourcePaths(String path)
getResourcePaths
in class ContextHandler
public void initCDI()
Copyright © 1995-2016 Webtide. All Rights Reserved.