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 Details

  • Constructor Details

    • MCRRemoveMsgBodyFilter

      public MCRRemoveMsgBodyFilter()
  • Method Details

    • filter

      public void filter(jakarta.ws.rs.container.ContainerRequestContext requestContext) throws IOException
      Specified by:
      filter in interface jakarta.ws.rs.container.ContainerRequestFilter
      Throws:
      IOException