Class RequestIdEchoFilter

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

@Provider @Priority(5000) public class RequestIdEchoFilter extends Object implements jakarta.ws.rs.container.ContainerResponseFilter

Echoes the RequestId header from request to response.

Author:
Antonio Tarricone
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    filter(jakarta.ws.rs.container.ContainerRequestContext requestContext, jakarta.ws.rs.container.ContainerResponseContext responseContext)
    Echoes the RequestId header from request to response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RequestIdEchoFilter

      public RequestIdEchoFilter()

      Default constructor.

  • Method Details

    • filter

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

      Echoes the RequestId header from request to response.

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