Class RequestLogger

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.RequestLogger
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class RequestLogger extends PipelinedHandler
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • RequestLogger

      public RequestLogger()
      Creates a new instance of RequestLoggerHandler
    • RequestLogger

      public RequestLogger(PipelinedHandler next)
      Creates a new instance of RequestLoggerHandler
      Parameters:
      next -
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange -
      Throws:
      Exception
    • dumpExchange

      protected void dumpExchange(io.undertow.server.HttpServerExchange exchange, Integer logLevel)
      dumpExchange Log a complete dump of the HttpServerExchange (both Request and Response)
      Parameters:
      exchange - the HttpServerExchange
      logLevel - it can be 0, 1 or 2