Class MCRApiDraftFilter

java.lang.Object
org.mycore.restapi.MCRApiDraftFilter
All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestFilter

@Priority(2000) public class MCRApiDraftFilter extends Object implements jakarta.ws.rs.container.ContainerRequestFilter
Filter all methods and classes marked by MCRApiDraft and return Response.Status.NOT_FOUND. Use Property MCR.RestApi.Draft.{MCRApiDraft.value()}=true to enable a group of endpoints marked with the same value, e.g.
"MCR.RestApi.Draft.Proposed=true" to include all endpoints marked with @MCRApiDraft("Proposed").
Author:
Thomas Scheffler (yagee)
See Also:
  • Constructor Details

    • MCRApiDraftFilter

      public MCRApiDraftFilter()
  • 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