Hello,
I'm in the process of migrating a legacy REST-like web application
towards a full REST-style app. Thereby I'd like to introduce Jersey
as the RESTful framework. Unfortunately the legacy app handled a few
form POSTs not using named form parameters, instead it simply
received the posted data (a few KBytes long String) as the
InputStream fetched via request.getInputStream().
I can't address the POSTed data using the @FormParam annotation since
I can't name that parameter. Is there any way to fetch the raw
InputStream for legacy purposes? Using "@Context with a Request type"
doesn't seem to do the job. Personally I believe that no JSR-311
compatible framework can provide access to the underlying stream
since when these frameworks invoke the user's code the request
parsing has already happened and the stream was emptied by parsing it
into params and all that stuff.
Am I right with this assumption or is there still some way to access
the request's InputStream in Jersey?
thx + Kind Regards,
Chris