protected void initializeTargetMappings ( ) throws Exception { // NOTE: namespace preinvoke/postinvoke not necessary as the only // external // code being run is the servlet's init() and that is handled in the // ServletWrapper // check if an extensionFactory is present for *.jsp: // We do this by constructing an arbitrary mapping which // will only match the *.xxx extension pattern // if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . FINE ) ) logger . entering ( CLASS_NAME , "initializeTargetMappings" ) ; initializeStaticFileHandler ( ) ; initializeInvokerProcessor ( ) ; if ( config . isDirectoryBrowsingEnabled ( ) ) { try { IServletWrapper dirServlet = getServletWrapper ( "DirectoryBrowsingServlet" ) ; requestMapper . addMapping ( DIR_BROWSING_MAPPING , dirServlet ) ; } catch ( WebContainerException wce ) { // pk435011 logger . logp ( Level . WARNING , CLASS_NAME , "initializeTargetMappings" , "mapping.for.directorybrowsingservlet.already.exists" ) ; } catch ( Exception exc ) { // pk435011 logger . logp ( Level . WARNING , CLASS_NAME , "initializeTargetMappings" , "mapping.for.directorybrowsingservlet.already.exists" ) ; } } }
Method initializeTargetMappings .