Class CommonHeadersValidatorFilter

java.lang.Object
it.pagopa.swclient.mil.CommonHeadersValidatorFilter
All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter

@Provider @PreMatching @Priority(5000) public class CommonHeadersValidatorFilter extends Object implements jakarta.ws.rs.container.ContainerRequestFilter

Validates RequestId and Version headers if they are present.

Author:
Antonio Tarricone
  • Constructor Details

    • CommonHeadersValidatorFilter

      public CommonHeadersValidatorFilter()

      Default constructor.

  • Method Details

    • filter

      public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException

      Validates RequestId and Version headers if they are present.

      Specified by:
      filter in interface jakarta.ws.rs.container.ContainerRequestFilter
      Throws:
      IOException
      See Also:
      • ContainerRequestFilter.filter(ContainerRequestContext)