Description
Minor syntactical change, but would allow us to code per-Form object, like Jersey here:
@Produces("application/x-www-form-urlencoded")
@GET
public Form getFormURLEncodedRep(
@PathParam("arg1")String arg1,
@PathParam("arg2")String arg2)
instead of the present MetadataMap (with CXF):
@Produces("application/x-www-form-urlencoded")
@GET
public MultivaluedMap<String, String> getFormURLEncodedRep(
@PathParam("arg1")String arg1,
@PathParam("arg2")String arg2) {
MultivaluedMap<String, String> urlProps = new MetadataMap<String, String>();
urlProps.add("representation", "FormURLEncodedRepresentation");
urlProps.add("name", "Master Duke");
urlProps.add("sex", "male");
urlProps.add("arg1", arg1);
urlProps.add("arg2", arg2);
return urlProps;
}
See conversion note #8 here: http://www.jroller.com/gmazza/entry/jersey_samples_on_cxf