@Test public void testEncode_Sort_Multiple() throws UnsupportedEncodingException { Sort ordering1 = Sort.property("abc").desc(); Sort ordering2 = Sort.property("xyz"); String encoded = encoder.encode(Arrays.asList(ordering1, ordering2)); assertEquals("[{\"property\":\"abc\",\"direction\":\"DESC\"},{\"property\":\"xyz\"}]", URLDecoder.decode(encoded, "UTF-8")); }
public String encode(Include include) { return urlEncode(asString(include)); }
RequestEncoder { public String encode(Include include) { return urlEncode(asString(include)); } }
RequestEncoder { public String encode(Include include) { return urlEncode(asString(include)); }  }
RequestEncoder { public String encode(Include include) { return urlEncode(asString(include)); }  static RequestEncoder encoder(); String encode(Include include); String encode(Expression expression); String encode(Collection<Sort> orderings); }
RequestEncoder { public String encode(Include include) { return urlEncode(asString(include)); }  static RequestEncoder encoder(); String encode(Include include); String encode(Expression expression); String encode(Collection<Sort> orderings);  }