Package it.pagopa.swclient.mil
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(jakarta.ws.rs.container.ContainerRequestContext requestContext, jakarta.ws.rs.container.ContainerResponseContext responseContext) Echoes the RequestId header from request to response.
-
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 interfacejakarta.ws.rs.container.ContainerResponseFilter
- Throws:
IOException
- See Also:
-