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();
    }
public static String getNamePrefix ( ServletContext servletContext , ServletRequest request , String name ) { ArrayList 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.

@param servletContext the current ServletContext.
@param request        the current ServletRequest.
@param name           the name of the query parameter.
@return a prefix to use to rewrite a query parameter name.