public RequestParameters copy ( String prefix ) { String keyPrefix = prefix + ":" ; RequestParameters copy = new RequestParameters ( ) ; for ( Map . Entry < String , List < String > > entry : entrySet ( ) ) { copy . put ( keyPrefix + entry . getKey ( ) , entry . getValue ( ) ) ; } return copy ; }
Creates a copy of the parameters prepending a namespace prefix to each parameter name .