Search in sources :

Example 1 with ReverseRoutes

use of org.webpieces.router.impl.ReverseRoutes in project webpieces by deanhiller.

the class R1RouterBuilder method applyFilters.

public void applyFilters(WebAppMeta rm) {
    ReverseRoutes reverseRoutes = holder.getReverseRoutes();
    Collection<RouteMeta> metas = reverseRoutes.getAllRouteMetas();
    for (RouteMeta meta : metas) {
        String path = meta.getRoute().getFullPath();
        List<FilterInfo<?>> filters = findMatchingFilters(path, meta.getRoute().isHttpsRoute());
        meta.setFilters(filters);
    }
    List<L2DomainRoutes> allDomains = allRouting.getAllDomains();
    for (L2DomainRoutes domainRoutes : allDomains) {
        applyFilters(domainRoutes, rm);
    }
}
Also used : RouteMeta(org.webpieces.router.impl.RouteMeta) ReverseRoutes(org.webpieces.router.impl.ReverseRoutes) FilterInfo(org.webpieces.router.impl.FilterInfo)

Aggregations

FilterInfo (org.webpieces.router.impl.FilterInfo)1 ReverseRoutes (org.webpieces.router.impl.ReverseRoutes)1 RouteMeta (org.webpieces.router.impl.RouteMeta)1