|
||||||||||
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 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 boolean |
_metaDataComplete
|
protected ServletHandler |
_servletHandler
|
protected Object |
_servletMappings
|
protected Object |
_servlets
|
protected int |
_version
|
protected Object |
_welcomeFiles
|
protected XmlParser |
_xmlParser
|
Constructor Summary | |
---|---|
WebXmlConfiguration()
|
Method Summary | |
---|---|
void |
configure(String webXml)
|
void |
configureClassLoader()
Configure ClassPath. |
void |
configureDefaults()
Process webdefaults.xml |
void |
configureWebApp()
Process web.xml |
void |
configureWebFragments()
Look for any web.xml fragments in META-INF of jars in WEB-INF/lib |
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 |
initializeVersion(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()
|
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 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
protected boolean _metaDataComplete
Constructor Detail |
---|
public WebXmlConfiguration() throws ClassNotFoundException
ClassNotFoundException
Method Detail |
---|
public static XmlParser webXmlParser() throws ClassNotFoundException
ClassNotFoundException
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
configureDefaults
in interface Configuration
Exception
Configuration.configureDefaults()
public void configureWebApp() throws Exception
configureWebApp
in interface Configuration
Exception
Configuration.configureWebApp()
public void configureWebFragments() throws Exception
Exception
protected URL findWebXml() throws IOException, MalformedURLException
IOException
MalformedURLException
public void configure(String webXml) throws Exception
Exception
public void deconfigureWebApp() throws Exception
Configuration
deconfigureWebApp
in interface Configuration
Exception
protected void initializeVersion(XmlParser.Node config)
protected void initialize(XmlParser.Node config) throws ClassNotFoundException, UnavailableException
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 String normalizePattern(String p)
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
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) throws Exception
Exception
protected void initSecurityRole(XmlParser.Node node)
protected String getJSPServletName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |