* servers. That makes this code very easy ( only need to deal with
* the last component of the name ), but it's hard to integrate and you
* have no way to use pathInfo.
*/
Container matchExtension( Request req ) {
Context ctx=req.getContext();
String ctxP=ctx.getPath();
// we haven't matched any prefix,
String path = req.servletPath().toString();
if( path == null ) return null;
String extension=FileUtil.getExtension( path );
if( extension == null ) return null;
if(debug>0)
cm.log("SM: Extension match " + ctxP + " " +
path + " " + extension );
// Find extension maps for the context
SimpleHashtable extM=(SimpleHashtable)ctx.
getContainer().getNote( ctExtMapNote );
if( extM==null ) return null;
// Find the container associated with that extension
if( ignoreCase ) extension=extension.toLowerCase();