@Test public void testEncode_Include_Constrained() throws UnsupportedEncodingException { Include include = Include.path("abc").mapBy("related").start(50).limit(100).sort("s1", "s2") .sort(Sort.property("d1").desc()).build(); String encoded = encoder.encode(include); assertEquals( "{\"path\":\"abc\",\"mapBy\":\"related\",\"start\":50,\"limit\":100," + "\"sort\":[{\"property\":\"d1\",\"direction\":\"DESC\"},{\"property\":\"s1\"},{\"property\":\"s2\"}]}", 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);  }