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 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 interface jakarta.ws.rs.container.ContainerRequestFilter
      Throws:
      IOException
      See Also:
      • ContainerRequestFilter.filter(ContainerRequestContext)