public static void dumpURLRewriters ( ServletRequest request , PrintStream output ) { ArrayList /*< URLRewriter >*/ rewriters = getRewriters ( request ) ; if ( output == null ) output = System . err ; output . println ( "*** List of URLRewriter objects: " + rewriters ) ; if ( rewriters != null ) { int count = 0 ; for ( Iterator i = rewriters . iterator ( ) ; i . hasNext ( ) ; ) { URLRewriter rewriter = ( URLRewriter ) i . next ( ) ; output . println ( " " + count ++ + ". " + rewriter . getClass ( ) . getName ( ) ) ; output . println ( " allows other rewriters: " + rewriter . allowOtherRewriters ( ) ) ; output . println ( " rewriter: " + rewriter ) ; } } else { output . println ( " No URLRewriter objects are registered with this request." ) ; } }
Print out information about the chain of URLRewriters in this request .