public class WebXmlConfiguration extends Object implements Configuration
| Modifier and Type | Field and Description |
|---|---|
protected Object |
_constraintMappings |
protected WebAppContext |
_context |
protected boolean |
_defaultWelcomeFileList |
protected Map |
_errorPages |
protected Object |
_filterMappings |
protected Object |
_filters |
protected boolean |
_hasJSP |
protected String |
_jspServletClass |
protected String |
_jspServletName |
protected Object |
_listeners |
protected ServletHandler |
_servletHandler |
protected Object |
_servletMappings |
protected Object |
_servlets |
protected int |
_version |
protected Object |
_welcomeFiles |
protected XmlParser |
_xmlParser |
| Constructor and Description |
|---|
WebXmlConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(String webXml) |
void |
configureClassLoader()
Configure ClassPath.
|
void |
configureDefaults()
Configure Defaults.
|
void |
configureWebApp()
Configure WebApp.
|
void |
deconfigureWebApp()
DeConfigure WebApp.
|
protected URL |
findWebXml() |
protected 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(String element,
XmlParser.Node node)
Handle web.xml element.
|
protected void |
initWelcomeFileList(XmlParser.Node node) |
protected Object |
newListenerInstance(Class clazz) |
protected String |
normalizePattern(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 Object _filters
protected Object _filterMappings
protected Object _servlets
protected Object _servletMappings
protected Object _welcomeFiles
protected Object _constraintMappings
protected Object _listeners
protected Map _errorPages
protected boolean _hasJSP
protected String _jspServletName
protected 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 Exception
configureClassLoader in interface ConfigurationExceptionpublic void configureDefaults()
throws Exception
ConfigurationconfigureDefaults in interface ConfigurationExceptionpublic void configureWebApp()
throws Exception
ConfigurationconfigureWebApp in interface ConfigurationExceptionprotected URL findWebXml() throws IOException, MalformedURLException
IOExceptionMalformedURLExceptionpublic void deconfigureWebApp()
throws Exception
ConfigurationdeconfigureWebApp in interface ConfigurationExceptionprotected void initialize(XmlParser.Node config) throws ClassNotFoundException, UnavailableException
protected void initWebXmlElement(String element, XmlParser.Node node) throws Exception
element - The element namenode - The node containing the element.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 void initServlet(XmlParser.Node node)
protected void initServletMapping(XmlParser.Node node)
protected void initListener(XmlParser.Node node)
protected Object newListenerInstance(Class clazz) throws InstantiationException, IllegalAccessException
protected 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 String getJSPServletName()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.