java - JAX-RS CXF access HTTP body from @BeanParam -
my question simple, didn't manage find response... possible jax-rs (using cxf implementation) access http request body @beanparam annotated parameter ?
i tried it doesn't work :
@path("/courses") @produces(mediatype.application_json) @consumes(mediatype.application_json) public class carsresource { @post @path("/{id}") public course update(@beanparam carupdaterequest request){ ... } } public class carupdaterequest { @pathparam("id") private string id; private carupdatedata data; // inject here body using jsonprovider }
it seems helloword example can't find working example. it's strange jax-rs doesn't have @bodyparam...
Comments
Post a Comment