Package it.pagopa.swclient.mil
Class MappedDiagnosticContextFilter
java.lang.Object
it.pagopa.swclient.mil.MappedDiagnosticContextFilter
- All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter
@Provider
@PreMatching
@Priority(5100)
public class MappedDiagnosticContextFilter
extends Object
implements jakarta.ws.rs.container.ContainerRequestFilter
Generates a RequestId if any and stores it in the mapped diagnostic context for logging.
- Author:
- Antonio Tarricone
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(jakarta.ws.rs.container.ContainerRequestContext requestContext) Generates a RequestId if any and stores it in the mapped diagnostic context for logging.
-
Constructor Details
-
MappedDiagnosticContextFilter
public MappedDiagnosticContextFilter()Default constructor.
-
-
Method Details
-
filter
public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException Generates a RequestId if any and stores it in the mapped diagnostic context for logging.
- Specified by:
filter
in interfacejakarta.ws.rs.container.ContainerRequestFilter
- Throws:
IOException
- See Also:
-