Package org.mycore.restapi
Class MCRRemoveMsgBodyFilter
java.lang.Object
org.mycore.restapi.MCRRemoveMsgBodyFilter
- All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter
@Priority(3000)
@Provider
public class MCRRemoveMsgBodyFilter
extends Object
implements jakarta.ws.rs.container.ContainerRequestFilter
Removed request message body if
IGNORE_MESSAGE_BODY_HEADER
is set.
Some user agent may set a HttpHeaders.CONTENT_LENGTH
header, even if no message body was send.
This filter removes Entity and the Content-Length
and Transfer-Encoding
header.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(jakarta.ws.rs.container.ContainerRequestContext requestContext)
-
Field Details
-
IGNORE_MESSAGE_BODY_HEADER
- See Also:
-
-
Constructor Details
-
MCRRemoveMsgBodyFilter
public MCRRemoveMsgBodyFilter()
-
-
Method Details
-
filter
public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException - Specified by:
filter
in interfacejakarta.ws.rs.container.ContainerRequestFilter
- Throws:
IOException
-