Class QueryFormatFilter
- java.lang.Object
-
- fish.payara.microprofile.openapi.impl.rest.app.provider.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 theAccept
header if theformat
query parameter is provided.
-
-
Constructor Summary
Constructors Constructor Description QueryFormatFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(jakarta.ws.rs.container.ContainerRequestContext request)
Filters incoming requests to change theAccept
header based on theformat
query parameter.
-
-
-
Method Detail
-
filter
public void filter(jakarta.ws.rs.container.ContainerRequestContext request) throws IOException
Filters incoming requests to change theAccept
header based on theformat
query parameter.- Specified by:
filter
in interfacejakarta.ws.rs.container.ContainerRequestFilter
- Throws:
IOException
-
-