0 Replies Latest reply on Jul 16, 2015 8:43 AM by seol

    Logging HTTP requests

    seol

      Hi all,

       

      I´m trying to log all incoming HTTP request in Wildfly 8.2. Therefore I use the io.undertow.server.handlers.RequestDumpingHandler class. This class logs all http headers but does not log the HTTP body.


      How can I read the http body without removing it from the handler queue? When I´m using HttpServerExchange.getInputStream() I´m able to access the original request but the underlying service (JAX-RS) doesn´t get a request object. I think, this is because of the empty InputStream which was emptied while I have read the request in my Handler.

       

      Is there any possibility to access the http body in a Handler?

       

      Thanks,

      Sebastian