108109110111112113114115116117118
if (path != null) { builder.path(path); } builder.replaceQuery(uri.getRawQuery()); builder.fragment(uri.getRawFragment()); URI rewrittenUri = builder.build(); debug(_log, "rewrite uri ", uri, " -> ", rewrittenUri); return rewrittenUri;