public class AntWebAppContext extends WebAppContext
Modifier and Type | Class and Description |
---|---|
static class |
AntWebAppContext.AntServletHandler
AntServletHandler
|
static class |
AntWebAppContext.AntServletHolder
AntServletHolder
|
static class |
AntWebAppContext.AntURLClassLoader
AntURLClassLoader
Adapt the AntClassLoader which is not a URLClassLoader - this is needed for
jsp to be able to search the classpath.
|
WebAppContext.Context
ServletContextHandler.Decorator, ServletContextHandler.JspConfig, ServletContextHandler.JspPropertyGroup, ServletContextHandler.ServletContainerInitializerCaller, ServletContextHandler.TagLib
ContextHandler.AliasCheck, ContextHandler.ApproveAliases, ContextHandler.ApproveNonExistentDirectoryAliases, ContextHandler.ApprovePathPrefixAliases, ContextHandler.ApproveSameSuffixAliases, ContextHandler.Availability, ContextHandler.NoContext
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.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, 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 |
---|
AntWebAppContext(org.apache.tools.ant.Project project)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(Attributes atts)
Adds a new Ant's attributes tag object if it have not been created yet.
|
void |
addClasses(org.apache.tools.ant.types.FileSet classes) |
void |
addLib(org.apache.tools.ant.types.FileSet lib) |
void |
addScanTargets(org.apache.tools.ant.types.FileSet scanTargets) |
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.
|
static void |
dump(ClassLoader loader) |
List<File> |
getClassPathFiles() |
File |
getContextXml() |
File |
getJettyEnvXml() |
List |
getLibraries() |
FileMatchingConfiguration |
getLibrariesConfiguration() |
List<File> |
getScanFiles() |
List |
getScanTargetFiles() |
List<File> |
initScanFiles() |
boolean |
isScanned(File file) |
protected ServletHandler |
newServletHandler() |
void |
setContextXml(File contextXml) |
void |
setJettyEnvXml(File jettyEnvXml) |
void |
setWar(String path) |
addEventListener, addOverrideDescriptor, addServerClass, addSystemClass, configure, destroy, getConfigurationClasses, getConfigurations, getCurrentWebAppContext, getDefaultConfigurationClasses, getDefaultsDescriptor, getDefaultServerClasses, getDefaultSystemClasses, getDescriptor, getExtraClasspath, getMetaData, getOverrideDescriptor, getOverrideDescriptors, getPermissions, getResource, getResourceAlias, getResourceAliases, getServerClasses, getSystemClasses, getTempDirectory, getUnavailableException, getWar, getWebInf, isAllowDuplicateFragmentNames, isConfigurationDiscovered, isCopyWebDir, isCopyWebInf, isDistributable, isExtractWAR, isLogUrlOnStart, isParentLoaderPriority, isPersistTempDirectory, 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, setPersistTempDirectory, setResourceAlias, setResourceAliases, setServer, setServerClasses, setServletSecurity, setSystemClasses, setTempDirectory, setThrowUnavailableOnStartupException, startContext, startWebapp, toString
addDecorator, addFilter, addFilter, addFilter, addRoles, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, dynamicHolderAdded, getDecorators, getDefaultSecurityHandlerClass, getSecurityHandler, getServletHandler, getSessionHandler, insertHandler, newSecurityHandler, newSessionHandler, setDecorators, setDefaultSecurityHandlerClass, setHandler, setSecurityHandler, setServletHandler, setSessionHandler
addAliasCheck, addLocaleEncoding, addProgrammaticListener, addVirtualHosts, checkAlias, checkContext, checkContextPath, checkManagedAttribute, checkVirtualHost, clearAttributes, doHandle, doScope, dump, 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, getResourcePaths, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isAvailable, isCompactPath, isProgrammaticListener, isProtectedTarget, isShutdown, loadClass, newResource, newResource, newResource, removeAttribute, removeVirtualHosts, setAliasChecks, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setContextPath, setErrorHandler, setInitParameter, setLogger, setManagedAttribute, setMaxFormContentSize, setMaxFormKeys, setMimeTypes, setProtectedTargets, setResourceBase, 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, 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 final AntWebInfConfiguration antWebInfConfiguration
public final WebXmlConfiguration webXmlConfiguration
public final MetaInfConfiguration metaInfConfiguration
public final FragmentConfiguration fragmentConfiguration
public final EnvConfiguration envConfiguration
public final PlusConfiguration plusConfiguration
public final AnnotationConfiguration annotationConfiguration
public final JettyWebXmlConfiguration jettyWebXmlConfiguration
public final Configuration[] DEFAULT_CONFIGURATIONS
public static final String DEFAULT_CONTAINER_INCLUDE_JAR_PATTERN
public static void dump(ClassLoader loader)
public void addAttributes(Attributes atts)
public void addLib(org.apache.tools.ant.types.FileSet lib)
public void addClasses(org.apache.tools.ant.types.FileSet classes)
protected ServletHandler newServletHandler()
newServletHandler
in class ServletContextHandler
public void setJettyEnvXml(File jettyEnvXml)
public File getJettyEnvXml()
public List getLibraries()
public void addScanTargets(org.apache.tools.ant.types.FileSet scanTargets)
public List getScanTargetFiles()
public boolean isScanned(File file)
public void setWar(String path)
setWar
in class WebAppContext
path
- The war to set as a file name or URLpublic void doStart()
ContainerLifeCycle
doStart
in class WebAppContext
AbstractHandler.doStart()
public void doStop()
ContainerLifeCycle
doStop
in class WebAppContext
ContextHandler.doStop()
public List<File> getClassPathFiles()
public FileMatchingConfiguration getLibrariesConfiguration()
FileMatchingConfiguration
object describing the
configuration of all libraries added to this particular web app
(both classes and libraries).public File getContextXml()
public void setContextXml(File contextXml)
Copyright © 1995-2015 Webtide. All Rights Reserved.