org.mortbay.jetty.webapp
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)
Configuration
setWebAppContext
in interface Configuration
public WebAppContext getWebAppContext()
Configuration
getWebAppContext
in interface Configuration
public void configureClassLoader() throws Exception
configureClassLoader
in interface Configuration
Exception
public void configureDefaults() throws Exception
Configuration
configureDefaults
in interface Configuration
Exception
public void configureWebApp() throws Exception
Configuration
configureWebApp
in interface Configuration
Exception
protected URL findWebXml() throws IOException, MalformedURLException
IOException
MalformedURLException
public void deconfigureWebApp() throws Exception
Configuration
deconfigureWebApp
in interface Configuration
Exception
protected 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.Exception
protected 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.