protected boolean allowResourceToBeServed ( String absolutePath ) { // does it have an adjunct directory marker? int idx = absolutePath . lastIndexOf ( ' ' ) ; if ( idx > 0 && classLoader . getResource ( absolutePath . substring ( 0 , idx ) + "/.adjunct" ) != null ) return true ; // backward compatible behaviour return absolutePath . endsWith ( ".gif" ) || absolutePath . endsWith ( ".png" ) || absolutePath . endsWith ( ".css" ) || absolutePath . endsWith ( ".js" ) ; }
Controls whether the given resource can be served to browsers .