org.springframework.boot.security.servlet

Class ApplicationContextRequestMatcher<C>

  • java.lang.Object
    • org.springframework.boot.security.servlet.ApplicationContextRequestMatcher<C>
    • Constructor Detail

      • ApplicationContextRequestMatcher

        public ApplicationContextRequestMatcher(Class<? extends C> contextClass)
    • Method Detail

      • matches

        protected abstract boolean matches(HttpServletRequest request,
                                           Supplier<C> context)
        Decides whether the rule implemented by the strategy matches the supplied request.
        Parameters:
        request - the source request
        context - a supplier for the initialized context (may throw an exception)
        Returns:
        if the request matches
      • initialized

        protected void initialized(Supplier<C> context)
        Called once the context has been initialized.
        Parameters:
        context - a supplier for the initialized context (may throw an exception)