|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.jetty.webapp.WebXmlConfiguration
public class WebXmlConfiguration
Configure by parsing default web.xml and web.xml
Field Summary | |
---|---|
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 Summary | |
---|---|
WebXmlConfiguration()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public WebXmlConfiguration()
Method Detail |
---|
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 java.lang.Exception
configureClassLoader
in interface Configuration
java.lang.Exception
public void configureDefaults() throws java.lang.Exception
Configuration
configureDefaults
in interface Configuration
java.lang.Exception
public void configureWebApp() throws java.lang.Exception
Configuration
configureWebApp
in interface Configuration
java.lang.Exception
protected java.net.URL findWebXml() throws java.io.IOException, java.net.MalformedURLException
java.io.IOException
java.net.MalformedURLException
public void configure(java.lang.String webXml) throws java.lang.Exception
java.lang.Exception
public void deconfigureWebApp() throws java.lang.Exception
Configuration
deconfigureWebApp
in interface Configuration
java.lang.Exception
protected void initialize(XmlParser.Node config) throws java.lang.ClassNotFoundException, javax.servlet.UnavailableException
java.lang.ClassNotFoundException
javax.servlet.UnavailableException
protected void initWebXmlElement(java.lang.String element, XmlParser.Node node) throws java.lang.Exception
element
- The element namenode
- The node containing the element.
java.lang.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 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.InstantiationException
java.lang.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 java.lang.String getJSPServletName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |