org.eclipse.jetty.webapp
类 WebAppContext

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.util.component.AggregateLifeCycle
          继承者 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
所有已实现的接口:
Handler, HandlerContainer, Server.Graceful, Attributes, Destroyable, Dumpable, LifeCycle, WebAppClassLoader.Context

public class WebAppContext
extends ServletContextHandler
implements WebAppClassLoader.Context

Web Application Context Handler. The WebAppContext handler is an extension of ContextHandler that coordinates the construction and configuration of nested handlers: ConstraintSecurityHandler, SessionHandler and ServletHandler. The handlers are configured by pluggable configuration classes, with the default being WebXmlConfiguration and JettyWebXmlConfiguration.


嵌套类摘要
 class WebAppContext.Context
           
 
从类 org.eclipse.jetty.servlet.ServletContextHandler 继承的嵌套类/接口
ServletContextHandler.Decorator, ServletContextHandler.JspConfig, ServletContextHandler.JspPropertyGroup, ServletContextHandler.TagLib
 
从类 org.eclipse.jetty.server.handler.ContextHandler 继承的嵌套类/接口
ContextHandler.AliasCheck, ContextHandler.ApproveNonExistentDirectoryAliases, ContextHandler.ApprovePathPrefixAliases, ContextHandler.ApproveSameSuffixAliases
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
static String[] __dftServerClasses
           
static String[] __dftSystemClasses
           
static String BASETEMPDIR
           
static String ERROR_PAGE
           
static String SERVER_CONFIG
           
static String SERVER_SRV_CLASSES
           
static String SERVER_SYS_CLASSES
           
static String TEMPDIR
           
static String WEB_DEFAULTS_XML
           
 
从类 org.eclipse.jetty.servlet.ServletContextHandler 继承的字段
_decorators, _defaultSecurityHandlerClass, _jspConfig, _options, _restrictedContextListeners, _securityHandler, _servletHandler, _sessionHandler, _wrapper, NO_SECURITY, NO_SESSIONS, SECURITY, SESSIONS
 
从类 org.eclipse.jetty.server.handler.ContextHandler 继承的字段
_scontext, MANAGED_ATTRIBUTES
 
从类 org.eclipse.jetty.server.handler.ScopedHandler 继承的字段
_nextScope, _outerScope
 
从类 org.eclipse.jetty.server.handler.HandlerWrapper 继承的字段
_handler
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
WebAppContext()
           
WebAppContext(HandlerContainer parent, String webApp, String contextPath)
           
WebAppContext(SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler)
          This constructor is used in the geronimo integration.
WebAppContext(String webApp, String contextPath)
           
 
方法摘要
 void addOverrideDescriptor(String overrideDescriptor)
          The override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml
 void addServerClass(String classname)
           
 void addSystemClass(String classname)
           
 void configure()
           
 void destroy()
          Destroy the joined Destroyable beans in the reverse order they were added.
protected  void doStart()
          Start the managed lifecycle beans in the order they were added.
protected  void doStop()
          Stop the joined lifecycle beans in the reverse order they were added.
 String[] getConfigurationClasses()
           
 Configuration[] getConfigurations()
           
static WebAppContext getCurrentWebAppContext()
           
 String[] getDefaultConfigurationClasses()
           
 String getDefaultsDescriptor()
          The default descriptor is a web.xml format file that is applied to the context before the standard WEB-INF/web.xml
 String[] getDefaultServerClasses()
           
 String[] getDefaultSystemClasses()
           
 String getDescriptor()
           
 String getExtraClasspath()
           
 MetaData getMetaData()
           
 String getOverrideDescriptor()
          已过时。 use getOverrideDescriptors()
 List<String> getOverrideDescriptors()
          An override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml
 PermissionCollection getPermissions()
           
 Resource getResource(String uriInContext)
           
 String getResourceAlias(String path)
           
 Map<String,String> getResourceAliases()
           
 String[] getServerClasses()
           
 String[] getSystemClasses()
           
 File getTempDirectory()
           
 Throwable getUnavailableException()
          Get an exception that caused the webapp to be unavailable
 String getWar()
           
 Resource getWebInf()
           
 boolean isAllowDuplicateFragmentNames()
           
 boolean isConfigurationDiscovered()
          Is the context Automatically configured.
 boolean isCopyWebDir()
           
 boolean isCopyWebInf()
           
 boolean isDistributable()
           
 boolean isExtractWAR()
           
 boolean isLogUrlOnStart()
           
 boolean isParentLoaderPriority()
           
 boolean isServerClass(String name)
          Is the class a Server Class.
 boolean isSystemClass(String name)
          Is the class a System Class.
 boolean isThrowUnavailableOnStartupException()
           
protected  void loadConfigurations()
           
protected  void loadSystemClasses()
           
 void postConfigure()
           
 void preConfigure()
          Pre configure the web application.
 String removeResourceAlias(String alias)
           
 void setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)
           
 void setClassLoader(ClassLoader classLoader)
           
 void setConfigurationClasses(String[] configurations)
           
 void setConfigurationDiscovered(boolean discovered)
          Set the configuration discovery mode.
 void setConfigurations(Configuration[] configurations)
           
 void setContextWhiteList(String[] contextWhiteList)
          Set the context white list In certain circumstances you want may want to deny access of one webapp from another when you may not fully trust the webapp.
 void setCopyWebDir(boolean copy)
           
 void setCopyWebInf(boolean copyWebInf)
           
 void setDefaultsDescriptor(String defaultsDescriptor)
          The default descriptor is a web.xml format file that is applied to the context before the standard WEB-INF/web.xml
 void setDescriptor(String descriptor)
           
 void setDisplayName(String servletContextName)
           
 void setDistributable(boolean distributable)
           
 void setEventListeners(EventListener[] eventListeners)
          Set the context event listeners.
 void setExtraClasspath(String extraClasspath)
           
 void setExtractWAR(boolean extractWAR)
           
 void setLogUrlOnStart(boolean logOnStart)
          Sets whether or not the web app name and URL is logged on startup
 void setOverrideDescriptor(String overrideDescriptor)
          已过时。 use setOverrideDescriptors(List)
 void setOverrideDescriptors(List<String> overrideDescriptors)
          The override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml
 void setParentLoaderPriority(boolean java2compliant)
           
 void setPermissions(PermissionCollection permissions)
           
 void setResourceAlias(String alias, String uri)
          Set Resource Alias.
 void setResourceAliases(Map<String,String> map)
           
 void setServer(Server server)
           
 void setServerClasses(String[] serverClasses)
          Set the server classes patterns.
 Set<String> setServletSecurity(ServletRegistration.Dynamic registration, ServletSecurityElement servletSecurityElement)
          Delegate for ServletRegistration.Dynamic.setServletSecurity method
 void setSystemClasses(String[] systemClasses)
          Set the system classes patterns.
 void setTempDirectory(File dir)
          Set temporary directory for context.
 void setThrowUnavailableOnStartupException(boolean throwIfStartupException)
           
 void setWar(String war)
           
protected  void startContext()
          Finish constructing handlers and link them together.
 String toString()
           
 
从类 org.eclipse.jetty.servlet.ServletContextHandler 继承的方法
addDecorator, addFilter, addFilter, addFilter, addRoles, addServlet, addServlet, addServlet, callContextDestroyed, callContextInitialized, dynamicHolderAdded, getDecorators, getDefaultSecurityHandlerClass, getSecurityHandler, getServletHandler, getSessionHandler, isRestrictListeners, newSecurityHandler, newServletHandler, newSessionHandler, restrictEventListener, setDecorators, setDefaultSecurityHandlerClass, setRestrictListeners, setSecurityHandler, setServletHandler, setSessionHandler
 
从类 org.eclipse.jetty.server.handler.ContextHandler 继承的方法
addAliasCheck, addEventListener, addLocaleEncoding, addVirtualHosts, checkContext, checkManagedAttribute, clearAttributes, doHandle, doScope, dump, getAliasChecks, getAllowNullPathInfo, getAttribute, getAttributeNames, getAttributes, getBaseResource, getClassLoader, getClassPath, getConnectorNames, getContextPath, getCurrentContext, getDisplayName, getErrorHandler, getEventListeners, getInitParameter, getInitParameterNames, getInitParams, getLocaleEncoding, getLocaleEncoding, getLogger, getMaxFormContentSize, getMaxFormKeys, getMimeTypes, getProtectedTargets, getResourceBase, getResourcePaths, getServletContext, getVirtualHosts, getWelcomeFiles, handle, isAliases, isAvailable, isCompactPath, isProtectedTarget, isShutdown, loadClass, newResource, newResource, removeAttribute, removeVirtualHosts, setAliases, setAllowNullPathInfo, setAttribute, setAttributes, setAvailable, setBaseResource, setCompactPath, setConnectorNames, setContextPath, setErrorHandler, setInitParameter, setLogger, setManagedAttribute, setMaxFormContentSize, setMaxFormKeys, setMimeTypes, setProtectedTargets, setResourceBase, setShutdown, setVirtualHosts, setWelcomeFiles
 
从类 org.eclipse.jetty.server.handler.ScopedHandler 继承的方法
handle, never, nextHandle, nextScope
 
从类 org.eclipse.jetty.server.handler.HandlerWrapper 继承的方法
expandChildren, getHandler, getHandlers, getNestedHandlerByClass, setHandler
 
从类 org.eclipse.jetty.server.handler.AbstractHandlerContainer 继承的方法
expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
从类 org.eclipse.jetty.server.handler.AbstractHandler 继承的方法
dumpThis, getServer
 
从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法
addBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.eclipse.jetty.webapp.WebAppClassLoader.Context 继承的方法
newResource
 
从接口 org.eclipse.jetty.server.Handler 继承的方法
getServer, handle
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

字段详细信息

TEMPDIR

public static final String TEMPDIR
另请参见:
常量字段值

BASETEMPDIR

public static final String BASETEMPDIR
另请参见:
常量字段值

WEB_DEFAULTS_XML

public static final String WEB_DEFAULTS_XML
另请参见:
常量字段值

ERROR_PAGE

public static final String ERROR_PAGE
另请参见:
常量字段值

SERVER_CONFIG

public static final String SERVER_CONFIG
另请参见:
常量字段值

SERVER_SYS_CLASSES

public static final String SERVER_SYS_CLASSES
另请参见:
常量字段值

SERVER_SRV_CLASSES

public static final String SERVER_SRV_CLASSES
另请参见:
常量字段值

__dftSystemClasses

public static final String[] __dftSystemClasses

__dftServerClasses

public static final String[] __dftServerClasses
构造方法详细信息

WebAppContext

public WebAppContext()

WebAppContext

public WebAppContext(String webApp,
                     String contextPath)
参数:
contextPath - The context path
webApp - The URL or filename of the webapp directory or war file.

WebAppContext

public WebAppContext(HandlerContainer parent,
                     String webApp,
                     String contextPath)
参数:
parent - The parent HandlerContainer.
contextPath - The context path
webApp - The URL or filename of the webapp directory or war file.

WebAppContext

public WebAppContext(SessionHandler sessionHandler,
                     SecurityHandler securityHandler,
                     ServletHandler servletHandler,
                     ErrorHandler errorHandler)
This constructor is used in the geronimo integration.

参数:
sessionHandler - SessionHandler for this web app
securityHandler - SecurityHandler for this web app
servletHandler - ServletHandler for this web app
errorHandler - ErrorHandler for this web app
方法详细信息

getCurrentWebAppContext

public static WebAppContext getCurrentWebAppContext()

setDisplayName

public void setDisplayName(String servletContextName)
覆盖:
ContextHandler 中的 setDisplayName
参数:
servletContextName - The servletContextName to set.

getUnavailableException

public Throwable getUnavailableException()
Get an exception that caused the webapp to be unavailable

返回:
A throwable if the webapp is unavailable or null

setResourceAlias

public void setResourceAlias(String alias,
                             String uri)
Set Resource Alias. Resource aliases map resource uri's within a context. They may optionally be used by a handler when looking for a resource.

参数:
alias -
uri -

getResourceAliases

public Map<String,String> getResourceAliases()

setResourceAliases

public void setResourceAliases(Map<String,String> map)

getResourceAlias

public String getResourceAlias(String path)

removeResourceAlias

public String removeResourceAlias(String alias)

setClassLoader

public void setClassLoader(ClassLoader classLoader)
覆盖:
ContextHandler 中的 setClassLoader
参数:
classLoader - The classLoader to set.

getResource

public Resource getResource(String uriInContext)
                     throws MalformedURLException
覆盖:
ContextHandler 中的 getResource
抛出:
MalformedURLException

isConfigurationDiscovered

public boolean isConfigurationDiscovered()
Is the context Automatically configured.

返回:
true if configuration discovery.

setConfigurationDiscovered

public void setConfigurationDiscovered(boolean discovered)
Set the configuration discovery mode. If configuration discovery is set to true, then the JSR315 servlet 3.0 discovered configuration features are enabled. These are:

参数:
discovered - true if configuration discovery is enabled for automatic configuration from the context

preConfigure

public void preConfigure()
                  throws Exception
Pre configure the web application.

The method is normally called from AbstractLifeCycle.start(). It performs the discovery of the configurations to be applied to this context, specifically:

抛出:
Exception

configure

public void configure()
               throws Exception
抛出:
Exception

postConfigure

public void postConfigure()
                   throws Exception
抛出:
Exception

doStart

protected void doStart()
                throws Exception
从类 AggregateLifeCycle 复制的描述
Start the managed lifecycle beans in the order they were added.

覆盖:
ContextHandler 中的 doStart
抛出:
Exception
另请参见:
HandlerWrapper.doStart()

doStop

protected void doStop()
               throws Exception
从类 AggregateLifeCycle 复制的描述
Stop the joined lifecycle beans in the reverse order they were added.

覆盖:
ServletContextHandler 中的 doStop
抛出:
Exception
另请参见:
ContextHandler.doStop()

destroy

public void destroy()
从类 AggregateLifeCycle 复制的描述
Destroy the joined Destroyable beans in the reverse order they were added.

指定者:
接口 Handler 中的 destroy
指定者:
接口 Destroyable 中的 destroy
覆盖:
HandlerWrapper 中的 destroy
另请参见:
Destroyable.destroy()

getConfigurationClasses

public String[] getConfigurationClasses()
返回:
Returns the configurations.

getConfigurations

public Configuration[] getConfigurations()
返回:
Returns the configurations.

getDefaultsDescriptor

public String getDefaultsDescriptor()
The default descriptor is a web.xml format file that is applied to the context before the standard WEB-INF/web.xml

返回:
Returns the defaultsDescriptor.

getOverrideDescriptor

@Deprecated
public String getOverrideDescriptor()
已过时。 use getOverrideDescriptors()

The override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml

返回:
Returns the Override Descriptor.

getOverrideDescriptors

public List<String> getOverrideDescriptors()
An override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml

返回:
Returns the Override Descriptor list

getPermissions

public PermissionCollection getPermissions()
指定者:
接口 WebAppClassLoader.Context 中的 getPermissions
返回:
Returns the permissions.

getServerClasses

public String[] getServerClasses()
返回:
Returns the serverClasses.
另请参见:
setServerClasses(String[])

addServerClass

public void addServerClass(String classname)

getSystemClasses

public String[] getSystemClasses()
返回:
Returns the systemClasses.
另请参见:
setSystemClasses(String[])

addSystemClass

public void addSystemClass(String classname)

isServerClass

public boolean isServerClass(String name)
从接口 WebAppClassLoader.Context 复制的描述
Is the class a Server Class. A Server class is a class that is part of the implementation of the server and is NIT visible to a webapplication. The web application may provide it's own implementation of the class, to be loaded from WEB-INF/lib or WEB-INF/classes

指定者:
接口 WebAppClassLoader.Context 中的 isServerClass
参数:
name - The fully qualified name of the class.
返回:
True if the class is a server class.

isSystemClass

public boolean isSystemClass(String name)
从接口 WebAppClassLoader.Context 复制的描述
Is the class a System Class. A System class is a class that is visible to a webapplication, but that cannot be overridden by the contents of WEB-INF/lib or WEB-INF/classes

指定者:
接口 WebAppClassLoader.Context 中的 isSystemClass
参数:
name - The fully qualified name of the class.
返回:
True if the class is a system class.

loadSystemClasses

protected void loadSystemClasses()

getWar

public String getWar()
返回:
Returns the war as a file or URL string (Resource)

getWebInf

public Resource getWebInf()
                   throws IOException
抛出:
IOException

isDistributable

public boolean isDistributable()
返回:
Returns the distributable.

isExtractWAR

public boolean isExtractWAR()
返回:
Returns the extractWAR.

isCopyWebDir

public boolean isCopyWebDir()
返回:
True if the webdir is copied (to allow hot replacement of jars on windows)

isCopyWebInf

public boolean isCopyWebInf()
返回:
True if the web-inf lib and classes directories are copied (to allow hot replacement of jars on windows)

isParentLoaderPriority

public boolean isParentLoaderPriority()
指定者:
接口 WebAppClassLoader.Context 中的 isParentLoaderPriority
返回:
True if the classloader should delegate first to the parent classloader (standard java behaviour) or false if the classloader should first try to load from WEB-INF/lib or WEB-INF/classes (servlet spec recommendation).

getDefaultConfigurationClasses

public String[] getDefaultConfigurationClasses()

getDefaultServerClasses

public String[] getDefaultServerClasses()

getDefaultSystemClasses

public String[] getDefaultSystemClasses()

loadConfigurations

protected void loadConfigurations()
                           throws Exception
抛出:
Exception

toString

public String toString()
覆盖:
ContextHandler 中的 toString

setConfigurationClasses

public void setConfigurationClasses(String[] configurations)
参数:
configurations - The configuration class names. If setConfigurations is not called these classes are used to create a configurations array.

setConfigurations

public void setConfigurations(Configuration[] configurations)
参数:
configurations - The configurations to set.

setDefaultsDescriptor

public void setDefaultsDescriptor(String defaultsDescriptor)
The default descriptor is a web.xml format file that is applied to the context before the standard WEB-INF/web.xml

参数:
defaultsDescriptor - The defaultsDescriptor to set.

setOverrideDescriptor

@Deprecated
public void setOverrideDescriptor(String overrideDescriptor)
已过时。 use setOverrideDescriptors(List)

The override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml

参数:
overrideDescriptor - The overrideDescritpor to set.

setOverrideDescriptors

public void setOverrideDescriptors(List<String> overrideDescriptors)
The override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml

参数:
overrideDescriptors - The overrideDescriptors (file or URL) to set.

addOverrideDescriptor

public void addOverrideDescriptor(String overrideDescriptor)
The override descriptor is a web.xml format file that is applied to the context after the standard WEB-INF/web.xml

参数:
overrideDescriptor - The overrideDescriptor (file or URL) to add.

getDescriptor

public String getDescriptor()
返回:
the web.xml descriptor to use. If set to null, WEB-INF/web.xml is used if it exists.

setDescriptor

public void setDescriptor(String descriptor)
参数:
descriptor - the web.xml descriptor to use. If set to null, WEB-INF/web.xml is used if it exists.

setDistributable

public void setDistributable(boolean distributable)
参数:
distributable - The distributable to set.

setEventListeners

public void setEventListeners(EventListener[] eventListeners)
从类 ContextHandler 复制的描述
Set the context event listeners.

覆盖:
ContextHandler 中的 setEventListeners
参数:
eventListeners - the event listeners
另请参见:
ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener

setExtractWAR

public void setExtractWAR(boolean extractWAR)
参数:
extractWAR - True if war files are extracted

setCopyWebDir

public void setCopyWebDir(boolean copy)
参数:
copy - True if the webdir is copied (to allow hot replacement of jars)

setCopyWebInf

public void setCopyWebInf(boolean copyWebInf)
参数:
copyWebInf - True if the web-inf lib and classes directories are copied (to allow hot replacement of jars on windows)

setParentLoaderPriority

public void setParentLoaderPriority(boolean java2compliant)
参数:
java2compliant - The java2compliant to set.

setPermissions

public void setPermissions(PermissionCollection permissions)
参数:
permissions - The permissions to set.

setContextWhiteList

public void setContextWhiteList(String[] contextWhiteList)
Set the context white list In certain circumstances you want may want to deny access of one webapp from another when you may not fully trust the webapp. Setting this white list will enable a check when a servlet called getContext(String), validating that the uriInPath for the given webapp has been declaratively allows access to the context.

参数:
contextWhiteList -

setServerClasses

public void setServerClasses(String[] serverClasses)
Set the server classes patterns.

Server classes/packages are classes used to implement the server and are hidden from the context. If the context needs to load these classes, it must have its own copy of them in WEB-INF/lib or WEB-INF/classes. A class pattern is a string of one of the forms:

org.package.Classname
Match a specific class
org.package.
Match a specific package hierarchy
-org.package.Classname
Exclude a specific class
-org.package.
Exclude a specific package hierarchy

参数:
serverClasses - The serverClasses to set.

setSystemClasses

public void setSystemClasses(String[] systemClasses)
Set the system classes patterns.

System classes/packages are classes provided by the JVM and that cannot be replaced by classes of the same name from WEB-INF, regardless of the value of setParentLoaderPriority(boolean). A class pattern is a string of one of the forms:

org.package.Classname
Match a specific class
org.package.
Match a specific package hierarchy
-org.package.Classname
Exclude a specific class
-org.package.
Exclude a specific package hierarchy

参数:
systemClasses - The systemClasses to set.

setTempDirectory

public void setTempDirectory(File dir)
Set temporary directory for context. The javax.servlet.context.tempdir attribute is also set.

参数:
dir - Writable temporary directory.

getTempDirectory

public File getTempDirectory()

setWar

public void setWar(String war)
参数:
war - The war to set as a file name or URL

getExtraClasspath

public String getExtraClasspath()
指定者:
接口 WebAppClassLoader.Context 中的 getExtraClasspath
返回:
Comma or semicolon separated path of filenames or URLs pointing to directories or jar files. Directories should end with '/'.

setExtraClasspath

public void setExtraClasspath(String extraClasspath)
参数:
extraClasspath - Comma or semicolon separated path of filenames or URLs pointing to directories or jar files. Directories should end with '/'.

isLogUrlOnStart

public boolean isLogUrlOnStart()

setLogUrlOnStart

public void setLogUrlOnStart(boolean logOnStart)
Sets whether or not the web app name and URL is logged on startup

参数:
logOnStart - whether or not the log message is created

setServer

public void setServer(Server server)
指定者:
接口 Handler 中的 setServer
覆盖:
ContextHandler 中的 setServer

isAllowDuplicateFragmentNames

public boolean isAllowDuplicateFragmentNames()

setAllowDuplicateFragmentNames

public void setAllowDuplicateFragmentNames(boolean allowDuplicateFragmentNames)

setThrowUnavailableOnStartupException

public void setThrowUnavailableOnStartupException(boolean throwIfStartupException)

isThrowUnavailableOnStartupException

public boolean isThrowUnavailableOnStartupException()

startContext

protected void startContext()
                     throws Exception
从类 ServletContextHandler 复制的描述
Finish constructing handlers and link them together.

覆盖:
ServletContextHandler 中的 startContext
抛出:
Exception
另请参见:
ContextHandler.startContext()

setServletSecurity

public Set<String> setServletSecurity(ServletRegistration.Dynamic registration,
                                      ServletSecurityElement servletSecurityElement)
从类 ServletContextHandler 复制的描述
Delegate for ServletRegistration.Dynamic.setServletSecurity method

覆盖:
ServletContextHandler 中的 setServletSecurity
参数:
registration - ServletRegistration.Dynamic instance that setServletSecurity was called on
servletSecurityElement - new security info
返回:
the set of exact URL mappings currently associated with the registration that are also present in the web.xml security constraints and thus will be unaffected by this call.

getMetaData

public MetaData getMetaData()


Copyright © 2013. All Rights Reserved.