@Test public void testRender() throws UnsupportedEncodingException, WebHookHtmlRendererException { String line = URLEncoder.encode("name1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8") + "&" + URLEncoder.encode("name2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8"); WebHookStringRenderer renderer = new WwwFormUrlEncodedToHtmlPrettyPrintingRenderer(); String result = renderer.render(line); System.out.println(result); }
@Override public String render(String formEncodedString) throws WebHookHtmlRendererException { Map<String, String> keyValues = extractKeyValues(formEncodedString); return renderToHtml(keyValues); }
WwwFormUrlEncodedToHtmlPrettyPrintingRenderer implements WebHookStringRenderer { @Override public String render(String formEncodedString) throws WebHookHtmlRendererException { Map<String, String> keyValues = extractKeyValues(formEncodedString); return renderToHtml(keyValues); } }
WwwFormUrlEncodedToHtmlPrettyPrintingRenderer implements WebHookStringRenderer { @Override public String render(String formEncodedString) throws WebHookHtmlRendererException { Map<String, String> keyValues = extractKeyValues(formEncodedString); return renderToHtml(keyValues); }  }
WwwFormUrlEncodedToHtmlPrettyPrintingRenderer implements WebHookStringRenderer { @Override public String render(String formEncodedString) throws WebHookHtmlRendererException { Map<String, String> keyValues = extractKeyValues(formEncodedString); return renderToHtml(keyValues); }  @Override String render(String formEncodedString); @Override String render(Map<String, String[]> requestParameterMap); }
WwwFormUrlEncodedToHtmlPrettyPrintingRenderer implements WebHookStringRenderer { @Override public String render(String formEncodedString) throws WebHookHtmlRendererException { Map<String, String> keyValues = extractKeyValues(formEncodedString); return renderToHtml(keyValues); }  @Override String render(String formEncodedString); @Override String render(Map<String, String[]> requestParameterMap);  }