org.mortbay.jetty.webapp
Class WebXmlConfiguration
java.lang.Object
org.mortbay.jetty.webapp.WebXmlConfiguration
- All Implemented Interfaces:
- Serializable, Configuration
public class WebXmlConfiguration
- extends Object
- implements Configuration
- Author:
- gregw
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_context
protected WebAppContext _context
_xmlParser
protected XmlParser _xmlParser
_filters
protected Object _filters
_filterMappings
protected Object _filterMappings
_servlets
protected Object _servlets
_servletMappings
protected Object _servletMappings
_welcomeFiles
protected Object _welcomeFiles
_constraintMappings
protected Object _constraintMappings
_listeners
protected Object _listeners
_errorPages
protected Map _errorPages
_hasJSP
protected boolean _hasJSP
WebXmlConfiguration
public WebXmlConfiguration()
webXmlParser
public static XmlParser webXmlParser()
setWebAppContext
public void setWebAppContext(WebAppContext context)
- Description copied from interface:
Configuration
- Set up a context on which to perform the configuration.
- Specified by:
setWebAppContext
in interface Configuration
getWebAppContext
public WebAppContext getWebAppContext()
- Description copied from interface:
Configuration
- Get the context on which the configuration is performed.
- Specified by:
getWebAppContext
in interface Configuration
- Returns:
configureClassLoader
public void configureClassLoader()
throws Exception
- Configure ClassPath.
This method is called before the context ClassLoader is created.
Paths and libraries should be added to the context using the setClassPath,
addClassPath and addClassPaths methods. The default implementation looks
for WEB-INF/classes, WEB-INF/lib/*.zip and WEB-INF/lib/*.jar
- Specified by:
configureClassLoader
in interface Configuration
- Throws:
Exception
configureDefaults
public void configureDefaults()
throws Exception
- Description copied from interface:
Configuration
- Configure Defaults.
This method is called to intialize the context to the containers default configuration.
Typically this would mean application of the webdefault.xml file.
- Specified by:
configureDefaults
in interface Configuration
- Throws:
Exception
configureWebApp
public void configureWebApp()
throws Exception
- Description copied from interface:
Configuration
- Configure WebApp.
This method is called to apply the standard and vendor deployment descriptors.
Typically this is web.xml and jetty-web.xml.
- Specified by:
configureWebApp
in interface Configuration
- Throws:
Exception
deconfigureWebApp
public void deconfigureWebApp()
throws Exception
- Description copied from interface:
Configuration
- DeConfigure WebApp.
This method is called to undo all configuration done to this webapphandler. This is
called to allow the context to work correctly over a stop/start cycle
- Specified by:
deconfigureWebApp
in interface Configuration
- Throws:
Exception
initialize
protected void initialize(XmlParser.Node config)
throws ClassNotFoundException,
UnavailableException
- Throws:
ClassNotFoundException
UnavailableException
initWebXmlElement
protected void initWebXmlElement(String element,
XmlParser.Node node)
throws 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:
Exception
initDisplayName
protected void initDisplayName(XmlParser.Node node)
initContextParam
protected void initContextParam(XmlParser.Node node)
initFilter
protected void initFilter(XmlParser.Node node)
throws ClassNotFoundException,
UnavailableException
- Throws:
ClassNotFoundException
UnavailableException
initFilterMapping
protected void initFilterMapping(XmlParser.Node node)
initServlet
protected void initServlet(XmlParser.Node node)
throws ClassNotFoundException,
UnavailableException,
IOException,
MalformedURLException
- Throws:
ClassNotFoundException
UnavailableException
IOException
MalformedURLException
initServletMapping
protected void initServletMapping(XmlParser.Node node)
initListener
protected void initListener(XmlParser.Node node)
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)
initSecurityRole
protected void initSecurityRole(XmlParser.Node node)
newServletHolder
protected ServletHolder newServletHolder()
newFilterHolder
protected FilterHolder newFilterHolder()