Class FilteredRouter

java.lang.Object
io.micronaut.web.router.filter.FilteredRouter
All Implemented Interfaces:
Router

public class FilteredRouter extends Object implements Router
Allows decorating an existing Router with filtering capabilities.

Filters themselves should be supplied via the RouteMatchFilter interface.

A filtered router can be enabled by implementing a BeanCreatedEventListener for the existing Router and decorating appropriately. See for example VersionAwareRouterListener

Since:
1.1.0
Author:
Bogdan Oros, graemerocher
See Also: