cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CXF user1109 <>
Subject Re: CXF : JAX-RS: support multiple request method designators to one method?
Date Mon, 05 Sep 2011 08:41:50 GMT
Your question :  What is a Tree ? How does a query string look like ? 

Here is the java class:

public class Constraint {
  private List<Term> terms;
  private List<Constraint> innerConstraints;

public class Term {

  private String operator;
  private Object[] values;
  private Long fieldId;

Json string example : 


Service methods are :

  List get(@QueryParam("constraint") Constraint constraint,
             @QueryParam("value") @DefaultValue("true") boolean value)

  @WebMethod(operationName = "test")
  List post(@FormParam("constraint") @WebParam(name = "constraint")
Constraint constraint,
               @QFormParam("value") @WebParam(name = "value")
@DefaultValue("true") boolean value)

Thank you for your support.

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message