public static String addStaticQueryParamtersToRequest(final Request<?> request,
                                                        final String uriResourcePath) {

        if (request == null || uriResourcePath == null) {
            return null;
        }

        String resourcePath = uriResourcePath;

        int index = resourcePath.indexOf("?");
        if (index != -1) {
            String queryString = resourcePath.substring(index + 1);
            resourcePath = resourcePath.substring(0, index);

            for (String s : queryString.split("[;&]")) {
                index = s.indexOf("=");
                if (index != -1) {
                    request.addParameter(s.substring(0, index), s.substring(index + 1));
                } else {
                    request.addParameter(s, (String)null);
                }
            }
        }
        return resourcePath;
    }
public static String addStaticQueryParamtersToRequest ( final Request < ? > request , final String uriResourcePath ) { if ( request == null || uriResourcePath == null ) { return null ; } String resourcePath = uriResourcePath ; int index = resourcePath . indexOf ( "?" ) ; if ( index != - 1 ) { String queryString = resourcePath . substring ( index + 1 ) ; resourcePath = resourcePath . substring ( 0 , index ) ; for ( String s : queryString . split ( "[;&]" ) ) { index = s . indexOf ( "=" ) ; if ( index != - 1 ) { request . addParameter ( s . substring ( 0 , index ) , s . substring ( index + 1 ) ) ; } else { request . addParameter ( s , ( String ) null ) ; } } } return resourcePath ; }
Identifies the static query parameters in Uri resource path for and adds it to
request.

Returns the updated uriResourcePath.