Uses of Interface
dev.relism.flash.routing.Middleware
Packages that use Middleware
Package
Description
-
Uses of Middleware in dev.relism.flash
Methods in dev.relism.flash that return MiddlewareModifier and TypeMethodDescriptionFlash.Middlewares.cors()Flash.Middlewares.cors(Flash.Middlewares.CorsConfig config) Flash.Middlewares.cors(Consumer<Flash.Middlewares.CorsConfig> fn) -
Uses of Middleware in dev.relism.flash.ext.jackson
Methods in dev.relism.flash.ext.jackson that return Middleware -
Uses of Middleware in dev.relism.flash.ext.limiter
Methods in dev.relism.flash.ext.limiter that return MiddlewareModifier and TypeMethodDescriptionReturns aMiddlewarethat enforces the given rate limit usingLimitStrategy.FIXED_WINDOW.Guard.limit(String resolverKey, int requests, long window, TimeUnit unit, LimitStrategy strategy) Returns aMiddlewarethat enforces the given rate limit with the specified strategy. -
Uses of Middleware in dev.relism.flash.ext.oidc
Methods in dev.relism.flash.ext.oidc that return MiddlewareModifier and TypeMethodDescriptionOidcMiddleware.authorize(dev.relism.flash.ext.oidc.OidcAuthPolicy policy) Compiled authorization policy path used by annotation-driven mounting.OidcMiddleware.optional()Silently populatesClaimsHolderif a valid bearer token or session cookie is present, but never rejects or redirects unauthenticated requests.OidcMiddleware.protect()Validates the bearer token or session cookie.OidcMiddleware.requireAnyScope(String... scopes) Requires at least one of the listed scopes to be present in the token.OidcMiddleware.requireRole(String... roles) LikeOidcMiddleware.protect()but also enforces that the caller holds at least one of the given roles (OR semantics).OidcMiddleware.requireScopes(String... scopes) Requires all listed scopes to be present in the token. -
Uses of Middleware in dev.relism.flash.extension
Methods in dev.relism.flash.extension that return types with arguments of type MiddlewareModifier and TypeMethodDescriptionList<Class<? extends Middleware>> RouteEvent.middlewareChain()Returns the value of themiddlewareChainrecord component.AnnotationProcessor.process(Class<? extends RequestHandler> handlerClass) Methods in dev.relism.flash.extension with parameters of type MiddlewareModifier and TypeMethodDescriptionprotected voidFlashApp.addMiddleware(Middleware mw) protected abstract voidFlashRegistrar.addMiddleware(Middleware mw) Registers a middleware in this registrar's own scope (global or scope-level).protected voidFlashScope.addMiddleware(Middleware mw) final SELFFlashRegistrar.connect(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.delete(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.get(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.head(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.options(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.patch(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.post(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.purge(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.put(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.trace(String path, SimpleHandler.FunctionalHandler h, Middleware... mw) final SELFFlashRegistrar.use(Middleware... middlewares) Adds middlewares to this registrar's own scope.Method parameters in dev.relism.flash.extension with type arguments of type MiddlewareModifier and TypeMethodDescriptionprotected voidFlashApp.addRoute(HttpMethod method, String path, RequestHandler handler, List<Middleware> mw) protected abstract voidFlashRegistrar.addRoute(HttpMethod method, String path, RequestHandler handler, List<Middleware> mw) Adds a route immediately to this registrar's deferred compilation list.protected voidFlashScope.addRoute(HttpMethod method, String path, RequestHandler handler, List<Middleware> mw) Constructor parameters in dev.relism.flash.extension with type arguments of type MiddlewareModifierConstructorDescriptionRouteEvent(HttpMethod method, String path, String namespace, String routerType, Class<?> handlerClass, List<Class<? extends Middleware>> middlewareChain) Creates an instance of aRouteEventrecord class. -
Uses of Middleware in dev.relism.flash.routing
Methods in dev.relism.flash.routing that return MiddlewareModifier and TypeMethodDescriptionstatic MiddlewareMiddleware.of(Middleware... chain) Composes an ordered chain of middlewares into a singleMiddleware.Methods in dev.relism.flash.routing with parameters of type MiddlewareModifier and TypeMethodDescriptionAbstractRouter.doRegister(HttpMethod method, String path, RequestHandler handler, Middleware[] middlewares) Registers a handler with a pre-built middleware array.static MiddlewareMiddleware.of(Middleware... chain) Composes an ordered chain of middlewares into a singleMiddleware.