@Test public void testEscapedList() { List<QueryParam> parameters = new ArrayList<>(); parameters.add(new QueryParam("selected song", "hey jude")); parameters.add(new QueryParam("bar", "foo")); FormDataPayload payload = new FormDataPayload(parameters); Assert.assertEquals("selected+song=hey+jude&bar=foo",payload.getValue()); }
public String getValue() { return value; }
FormDataPayload implements Payload { public String getValue() { return value; } }
FormDataPayload implements Payload { public String getValue() { return value; } FormDataPayload(Map<String, List<String>> parameters);  FormDataPayload(List<QueryParam> parameters);  FormDataPayload(String formatted); }
FormDataPayload implements Payload { public String getValue() { return value; } FormDataPayload(Map<String, List<String>> parameters);  FormDataPayload(List<QueryParam> parameters);  FormDataPayload(String formatted); MIMEType getMimeType(); InputStream getInputStream(); @Deprecated String getValues(); String getValue(); boolean isAvailable(); long length(); }
FormDataPayload implements Payload { public String getValue() { return value; } FormDataPayload(Map<String, List<String>> parameters);  FormDataPayload(List<QueryParam> parameters);  FormDataPayload(String formatted); MIMEType getMimeType(); InputStream getInputStream(); @Deprecated String getValues(); String getValue(); boolean isAvailable(); long length();  }