public static String getNamePrefix ( ServletContext servletContext , ServletRequest request , String name ) { ArrayList /*< URLRewriter >*/ rewriters = getRewriters ( request ) ; InternalStringBuilder prefix = new InternalStringBuilder ( ) ; if ( rewriters != null ) { for ( Iterator i = rewriters . iterator ( ) ; i . hasNext ( ) ; ) { URLRewriter rewriter = ( URLRewriter ) i . next ( ) ; String nextPrefix = rewriter . getNamePrefix ( servletContext , request , name ) ; if ( nextPrefix != null ) { prefix . append ( nextPrefix ) ; } } } return prefix . toString ( ) ; }
Get the prefix to use when rewriting a query parameter name . Loops through the list of registered URLRewriters to build up a the prefix .