Package org.restheart.handlers
Class RequestLogger
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.RequestLogger
- All Implemented Interfaces:
io.undertow.server.HttpHandler
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of RequestLoggerHandlerCreates a new instance of RequestLoggerHandler -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddumpExchange(io.undertow.server.HttpServerExchange exchange, Integer logLevel) dumpExchange Log a complete dump of the HttpServerExchange (both Request and Response)voidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
RequestLogger
public RequestLogger()Creates a new instance of RequestLoggerHandler -
RequestLogger
Creates a new instance of RequestLoggerHandler- Parameters:
next-
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
dumpExchange
dumpExchange Log a complete dump of the HttpServerExchange (both Request and Response)- Parameters:
exchange- the HttpServerExchangelogLevel- it can be 0, 1 or 2
-