org.eclipse.jetty.webapp
Class WebXmlProcessor
java.lang.Object
org.eclipse.jetty.webapp.WebXmlProcessor
public class WebXmlProcessor
- extends java.lang.Object
WebXmlProcessor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WEB_PROCESSOR
public static final java.lang.String WEB_PROCESSOR
- See Also:
- Constant Field Values
METADATA_COMPLETE
public static final java.lang.String METADATA_COMPLETE
- See Also:
- Constant Field Values
WEBXML_VERSION
public static final java.lang.String WEBXML_VERSION
- See Also:
- Constant Field Values
WEBXML_CLASSNAMES
public static final java.lang.String WEBXML_CLASSNAMES
- See Also:
- Constant Field Values
_context
protected WebAppContext _context
_xmlParser
protected XmlParser _xmlParser
_webDefaultsRoot
protected WebXmlProcessor.Descriptor _webDefaultsRoot
_webXmlRoot
protected WebXmlProcessor.Descriptor _webXmlRoot
_webFragmentRoots
protected java.util.List<WebXmlProcessor.Descriptor> _webFragmentRoots
_webOverrideRoot
protected WebXmlProcessor.Descriptor _webOverrideRoot
_servletHandler
protected ServletHandler _servletHandler
_securityHandler
protected SecurityHandler _securityHandler
_filters
protected java.lang.Object _filters
_filterMappings
protected java.lang.Object _filterMappings
_servlets
protected java.lang.Object _servlets
_servletMappings
protected java.lang.Object _servletMappings
_listeners
protected java.lang.Object _listeners
_welcomeFiles
protected java.lang.Object _welcomeFiles
_roles
protected java.util.Set<java.lang.String> _roles
_constraintMappings
protected java.lang.Object _constraintMappings
_errorPages
protected java.util.Map _errorPages
_hasJSP
protected boolean _hasJSP
_jspServletName
protected java.lang.String _jspServletName
_jspServletClass
protected java.lang.String _jspServletClass
_defaultWelcomeFileList
protected boolean _defaultWelcomeFileList
WebXmlProcessor
public WebXmlProcessor(WebAppContext context)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
webXmlParser
public static XmlParser webXmlParser()
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
redirect
protected static void redirect(XmlParser parser,
java.lang.String resource,
java.net.URL source)
parseDefaults
public void parseDefaults(Resource webDefaults)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseWebXml
public void parseWebXml(Resource webXml)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseFragment
public void parseFragment(Resource fragment)
throws java.lang.Exception
- Throws:
java.lang.Exception
parseOverride
public void parseOverride(Resource override)
throws java.lang.Exception
- Throws:
java.lang.Exception
processDefaults
public void processDefaults()
throws java.lang.Exception
- Throws:
java.lang.Exception
processWebXml
public void processWebXml()
throws java.lang.Exception
- Throws:
java.lang.Exception
processFragments
public void processFragments()
throws java.lang.Exception
- Throws:
java.lang.Exception
processOverride
public void processOverride()
throws java.lang.Exception
- Throws:
java.lang.Exception
getWebXml
public WebXmlProcessor.Descriptor getWebXml()
getOverrideWeb
public WebXmlProcessor.Descriptor getOverrideWeb()
getWebDefault
public WebXmlProcessor.Descriptor getWebDefault()
getFragments
public java.util.List<WebXmlProcessor.Descriptor> getFragments()
process
public void process(XmlParser.Node config)
throws java.lang.Exception
- Throws:
java.lang.Exception
initWebXmlElement
protected void initWebXmlElement(java.lang.String element,
XmlParser.Node node)
throws java.lang.Exception
- Handle web.xml element. This method is called for each top level element
within the web.xml file. It may be specialized by derived WebAppHandlers
to provide additional configuration and handling.
- Parameters:
element - The element namenode - The node containing the element.
- Throws:
java.lang.Exception
initDisplayName
protected void initDisplayName(XmlParser.Node node)
initContextParam
protected void initContextParam(XmlParser.Node node)
initFilter
protected void initFilter(XmlParser.Node node)
initFilterMapping
protected void initFilterMapping(XmlParser.Node node)
normalizePattern
protected java.lang.String normalizePattern(java.lang.String p)
initServlet
protected void initServlet(XmlParser.Node node)
initServletMapping
protected void initServletMapping(XmlParser.Node node)
initListener
protected void initListener(XmlParser.Node node)
newListenerInstance
protected java.lang.Object newListenerInstance(java.lang.Class clazz)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
initDistributable
protected void initDistributable(XmlParser.Node node)
initSessionConfig
protected void initSessionConfig(XmlParser.Node node)
initMimeConfig
protected void initMimeConfig(XmlParser.Node node)
initWelcomeFileList
protected void initWelcomeFileList(XmlParser.Node node)
initLocaleEncodingList
protected void initLocaleEncodingList(XmlParser.Node node)
initErrorPage
protected void initErrorPage(XmlParser.Node node)
initTagLib
protected void initTagLib(XmlParser.Node node)
initJspConfig
protected void initJspConfig(XmlParser.Node node)
initSecurityConstraint
protected void initSecurityConstraint(XmlParser.Node node)
initLoginConfig
protected void initLoginConfig(XmlParser.Node node)
throws java.lang.Exception
- Throws:
java.lang.Exception
initSecurityRole
protected void initSecurityRole(XmlParser.Node node)
getJSPServletName
protected java.lang.String getJSPServletName()
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.