@Test public void testEncode_Include_CayenneExpression() throws UnsupportedEncodingException { Include include = Include.path("abc") .cayenneExp(Expression.query("name like $name and age >= $age").param("name", "Jo%").param("age", 21)) .build(); String encoded = encoder.encode(include); assertEquals("{\"path\":\"abc\",\"cayenneExp\":{\"exp\":\"name like $name and age >= $age\"," + "\"params\":{\"name\":\"Jo%\",\"age\":\"21\"}}}", 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);  }