Class QueryFormatFilter

  • All Implemented Interfaces:
    jakarta.ws.rs.container.ContainerRequestFilter

    @Provider
    @PreMatching
    public class QueryFormatFilter
    extends Object
    implements jakarta.ws.rs.container.ContainerRequestFilter
    A filter that attempts to change the Accept header if the format query parameter is provided.
    • Constructor Detail

      • QueryFormatFilter

        public QueryFormatFilter()
    • Method Detail

      • filter

        public void filter​(jakarta.ws.rs.container.ContainerRequestContext request)
                    throws IOException
        Filters incoming requests to change the Accept header based on the format query parameter.
        Specified by:
        filter in interface jakarta.ws.rs.container.ContainerRequestFilter
        Throws:
        IOException