I am using Jersey framework for my RESTful web services. Following some
documents available in Jersey website, I developed a custom
MessageBodyReader in-order to parse my JSON to Java object.
Using JAX-RS client API, I am able to send the appropriate JSON input
to the respective Jersey (REST) resource. Since REST is a common
standard, how can I pass the necessary information using any other REST
client.
I am confused here because the REST resource input (JSON / Java) is not
mapped with any one of the parameters like PathParam, QueryParam,
FormParam or HeaderParam.
If my client is like that
Response response =
webTarget.request().post(Entity.entity(jsonObject.toString(),
MediaType.APPLICATION_JSON));
Through which medium the JSON will be passed to the RESTful resource?
Thanks,
Tham