Package com.io7m.idstore.server.logging
Class IdServerMDCResponseProcessor
java.lang.Object
com.io7m.idstore.server.logging.IdServerMDCResponseProcessor
- All Implemented Interfaces:
IdServerMDCProcessorType,AutoCloseable
An MDC processor that adds MDC properties for an HTTP response.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Remove any MDC properties that were added by the processor.static IdServerMDCProcessorTypeopen(IdServerClock inClock, org.eclipse.jetty.server.Request inRequest, org.eclipse.jetty.server.Response inResponse) An MDC processor that adds MDC properties for an HTTP response.
-
Method Details
-
open
public static IdServerMDCProcessorType open(IdServerClock inClock, org.eclipse.jetty.server.Request inRequest, org.eclipse.jetty.server.Response inResponse) An MDC processor that adds MDC properties for an HTTP response.- Parameters:
inRequest- The requestinResponse- The responseinClock- A clock- Returns:
- A processor
-
close
Description copied from interface:IdServerMDCProcessorTypeRemove any MDC properties that were added by the processor.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIdServerMDCProcessorType- Throws:
RuntimeException- On errors
-