org.mortbay.jetty.webapp
public class WebXmlConfiguration extends java.lang.Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
_constraintMappings |
protected WebAppContext |
_context |
protected boolean |
_defaultWelcomeFileList |
protected java.util.Map |
_errorPages |
protected java.lang.Object |
_filterMappings |
protected java.lang.Object |
_filters |
protected boolean |
_hasJSP |
protected java.lang.String |
_jspServletClass |
protected java.lang.String |
_jspServletName |
protected java.lang.Object |
_listeners |
protected ServletHandler |
_servletHandler |
protected java.lang.Object |
_servletMappings |
protected java.lang.Object |
_servlets |
protected int |
_version |
protected java.lang.Object |
_welcomeFiles |
protected XmlParser |
_xmlParser |
| Constructor and Description |
|---|
WebXmlConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.lang.String webXml) |
void |
configureClassLoader()
Configure ClassPath.
|
void |
configureDefaults()
Configure Defaults.
|
void |
configureWebApp()
Configure WebApp.
|
void |
deconfigureWebApp()
DeConfigure WebApp.
|
protected java.net.URL |
findWebXml() |
protected java.lang.String |
getJSPServletName() |
WebAppContext |
getWebAppContext()
Get the context on which the configuration is performed.
|
protected void |
initContextParam(XmlParser.Node node) |
protected void |
initDisplayName(XmlParser.Node node) |
protected void |
initDistributable(XmlParser.Node node) |
protected void |
initErrorPage(XmlParser.Node node) |
protected void |
initFilter(XmlParser.Node node) |
protected void |
initFilterMapping(XmlParser.Node node) |
protected void |
initialize(XmlParser.Node config) |
protected void |
initJspConfig(XmlParser.Node node) |
protected void |
initListener(XmlParser.Node node) |
protected void |
initLocaleEncodingList(XmlParser.Node node) |
protected void |
initLoginConfig(XmlParser.Node node) |
protected void |
initMimeConfig(XmlParser.Node node) |
protected void |
initSecurityConstraint(XmlParser.Node node) |
protected void |
initSecurityRole(XmlParser.Node node) |
protected void |
initServlet(XmlParser.Node node) |
protected void |
initServletMapping(XmlParser.Node node) |
protected void |
initSessionConfig(XmlParser.Node node) |
protected void |
initTagLib(XmlParser.Node node) |
protected void |
initWebXmlElement(java.lang.String element,
XmlParser.Node node)
Handle web.xml element.
|
protected void |
initWelcomeFileList(XmlParser.Node node) |
protected java.lang.Object |
newListenerInstance(java.lang.Class clazz) |
protected java.lang.String |
normalizePattern(java.lang.String p) |
void |
setWebAppContext(WebAppContext context)
Set up a context on which to perform the configuration.
|
static XmlParser |
webXmlParser() |
protected WebAppContext _context
protected XmlParser _xmlParser
protected java.lang.Object _filters
protected java.lang.Object _filterMappings
protected java.lang.Object _servlets
protected java.lang.Object _servletMappings
protected java.lang.Object _welcomeFiles
protected java.lang.Object _constraintMappings
protected java.lang.Object _listeners
protected java.util.Map _errorPages
protected boolean _hasJSP
protected java.lang.String _jspServletName
protected java.lang.String _jspServletClass
protected boolean _defaultWelcomeFileList
protected ServletHandler _servletHandler
protected int _version
public static XmlParser webXmlParser()
public void setWebAppContext(WebAppContext context)
ConfigurationsetWebAppContext in interface Configurationpublic WebAppContext getWebAppContext()
ConfigurationgetWebAppContext in interface Configurationpublic void configureClassLoader()
throws java.lang.Exception
configureClassLoader in interface Configurationjava.lang.Exceptionpublic void configureDefaults()
throws java.lang.Exception
ConfigurationconfigureDefaults in interface Configurationjava.lang.Exceptionpublic void configureWebApp()
throws java.lang.Exception
ConfigurationconfigureWebApp in interface Configurationjava.lang.Exceptionprotected java.net.URL findWebXml()
throws java.io.IOException,
java.net.MalformedURLException
java.io.IOExceptionjava.net.MalformedURLExceptionpublic void configure(java.lang.String webXml)
throws java.lang.Exception
java.lang.Exceptionpublic void deconfigureWebApp()
throws java.lang.Exception
ConfigurationdeconfigureWebApp in interface Configurationjava.lang.Exceptionprotected void initialize(XmlParser.Node config) throws java.lang.ClassNotFoundException, UnavailableException
java.lang.ClassNotFoundExceptionUnavailableExceptionprotected void initWebXmlElement(java.lang.String element,
XmlParser.Node node)
throws java.lang.Exception
element - The element namenode - The node containing the element.java.lang.Exceptionprotected void initDisplayName(XmlParser.Node node)
protected void initContextParam(XmlParser.Node node)
protected void initFilter(XmlParser.Node node)
protected void initFilterMapping(XmlParser.Node node)
protected java.lang.String normalizePattern(java.lang.String p)
protected void initServlet(XmlParser.Node node)
protected void initServletMapping(XmlParser.Node node)
protected void initListener(XmlParser.Node node)
protected java.lang.Object newListenerInstance(java.lang.Class clazz)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionprotected void initDistributable(XmlParser.Node node)
protected void initSessionConfig(XmlParser.Node node)
protected void initMimeConfig(XmlParser.Node node)
protected void initWelcomeFileList(XmlParser.Node node)
protected void initLocaleEncodingList(XmlParser.Node node)
protected void initErrorPage(XmlParser.Node node)
protected void initTagLib(XmlParser.Node node)
protected void initJspConfig(XmlParser.Node node)
protected void initSecurityConstraint(XmlParser.Node node)
protected void initLoginConfig(XmlParser.Node node)
protected void initSecurityRole(XmlParser.Node node)
protected java.lang.String getJSPServletName()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.