Class AuthorizationProcessingFilter

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

    @Provider
    @Priority(1000)
    @RequestScoped
    public class AuthorizationProcessingFilter
    extends Object
    implements jakarta.ws.rs.container.ContainerRequestFilter
    A RestEasy filter to centralize protection of APIs based on path pattern
    • Constructor Detail

      • AuthorizationProcessingFilter

        public AuthorizationProcessingFilter()
    • Method Detail

      • filter

        public void filter​(jakarta.ws.rs.container.ContainerRequestContext requestContext)
                    throws IOException
        This method performs the protection check of service invocations: it provokes returning an early error response if the underlying protection logic does not succeed, otherwise, makes the request flow to its destination service object
        Specified by:
        filter in interface jakarta.ws.rs.container.ContainerRequestFilter
        Parameters:
        requestContext - The ContainerRequestContext associated to filter execution
        Throws:
        IOException - In practice no exception is thrown here. It's present to conform to interface implemented.