Configurable option for generating body content in Post requests
Hi,
I'm creating a simple REST service. I figured I'd use JAX-RS. I've generated my API and the documentation looks good.
I'm having trouble modifying the generated JAX-RS code (I'm using Jersey/Jetty) to retrieve 'body' parameters properly. If they're sent in a single packet with the request, the stub is invoked OK. If the body comes in another packet, however, Jetty dispatches the call as soon as the headers are complete and my server stub is invoked with a "null" parameter that should've been retrieved from the HTTP body.
Is there any good JAX-RS sample code that actually properly retrieves a 'body' parameter for use? Is there anything special my code needs to do if the passed function parameter is "null"? Am I supposed to be writing code to retrieve it from the body once that actually arrives, and block until then somehow?
Any pointers to complete sample code (that don't just return"Magic!" without looking at the parameters...) would be much appreciated!
Thanks!
-Patrick.