Hi all,
I want to do the following:
In my HttpServletRequestWrapper, I want to overwrite the method
public ServletInputStream getInputStream();
I want to read the InputStream (super.getInputStream()), manipulate it (replace some SubStrings with new values) and then return it.
At the moment I read the content of the Stream into a String, replace the substrings and now I need to create a new InputStream I can return. I don't know how to do the last step ....
Is there a better way, maybe not create a String but manipulate the stream directly and return it?
Thanks for your help and best Regards from Walldorf,
alex