On Wednesday 26 May 2010 9:51:11 pm rangeli nepal wrote: > *Good Evening everybody, > > I am trying to write an interceptor that tries to get Post Message (Form > posted). C*urrently I try to get Inputstream from MessageContext (through > HttpServeletRequest). > It works all most everytime except when I use with *LoggingInterceptor. It > complains about stream being closes. > > I was wondering what is the best way to get post data in interceptor? > Your response will be appreciated.
In an interceptor, you should just do: message.getContent(InputStream.class) to get the InputStream. In most cases, it would just be a wrapper around the original servlet input stream, but if something needs to consume or remap it, there may be other wrappers. (like may gzip or something) -- Daniel Kulp [email protected] http://dankulp.com/blog
