private String rewriteValue(UrlRewriter rewriter, String value, String rule) { try { Template input = Parser.parse(value); Template output = rewriter.rewrite(this, input, UrlRewriter.Direction.IN, rule); value = output.toString(); } catch (URISyntaxException e) { LOG.failedToParseValueForUrlRewrite(value); } return value; }
private String[] splitTargetUrl(Template url) { String s = url.toString(); return s.split("\\?"); }