public void splitQuery(I invocation,String rawURI) throws IOException {
  int p=rawURI.indexOf('?');
  if (p > 0) {
    invocation.setQueryString(rawURI.substring(p + 1));
    rawURI=rawURI.substring(0,p);
  }
  invocation.setRawURI(rawURI);
  String uri=normalizeUri(rawURI);
  invocation.setURI(uri);
}

public void splitQuery ( I invocation , String rawURI ) throws IOException { int p = rawURI . indexOf ( '?' ) ; if ( p > 0 ) { invocation . setQueryString ( rawURI . substring ( p + 1 ) ) ; rawURI = rawURI . substring ( 0 , p ) ; } invocation . setRawURI ( rawURI ) ; String uri = normalizeUri ( rawURI ) ; invocation . setURI ( uri ) ; }
splits out the query string , and normalizes the uri , assuming nothing needs unescaping .
