public static String rewriteURI ( String uri , HttpHost targetHost ) { try { return URIUtils . rewriteURI ( createURI ( uri ) , targetHost ) . toString ( ) ; } catch ( URISyntaxException e ) { throw new InvalidUriException ( e ) ; } }
Replaces the scheme host and port in a URI .