protected void initWebXmlElement ( String element , XmlParser . Node node ) throws Exception { if ( "display-name" . equals ( element ) ) initDisplayName ( node ) ; else if ( "description" . equals ( element ) ) { } else if ( "context-param" . equals ( element ) ) initContextParam ( node ) ; else if ( "servlet" . equals ( element ) ) initServlet ( node ) ; else if ( "servlet-mapping" . equals ( element ) ) initServletMapping ( node ) ; else if ( "session-config" . equals ( element ) ) initSessionConfig ( node ) ; else if ( "mime-mapping" . equals ( element ) ) initMimeConfig ( node ) ; else if ( "welcome-file-list" . equals ( element ) ) initWelcomeFileList ( node ) ; else if ( "locale-encoding-mapping-list" . equals ( element ) ) initLocaleEncodingList ( node ) ; else if ( "error-page" . equals ( element ) ) initErrorPage ( node ) ; else if ( "taglib" . equals ( element ) ) initTagLib ( node ) ; else if ( "jsp-config" . equals ( element ) ) initJspConfig ( node ) ; else if ( "resource-ref" . equals ( element ) ) { if ( log . isDebugEnabled ( ) ) log . debug ( "No implementation: " + node ) ; } else if ( "security-constraint" . equals ( element ) ) initSecurityConstraint ( node ) ; else if ( "login-config" . equals ( element ) ) initLoginConfig ( node ) ; else if ( "security-role" . equals ( element ) ) initSecurityRole ( node ) ; else if ( "filter" . equals ( element ) ) initFilter ( node ) ; else if ( "filter-mapping" . equals ( element ) ) initFilterMapping ( node ) ; else if ( "listener" . equals ( element ) ) initListener ( node ) ; else if ( "distributable" . equals ( element ) ) initDistributable ( node ) ; else { if ( log . isDebugEnabled ( ) ) { log . debug ( "Element " + element + " not handled in " + this ) ; log . debug ( node ) ; } } }
Handle web . xml element . This method is called for each top level element within the web . xml file . It may be specialized by derived WebApplicationContexts to provide additional configuration and handling .