use of org.webpieces.router.impl.routers.DContentTypeRouter in project webpieces by deanhiller.
the class AllContentTypesBuilderImpl method buildRouter.
public CRouter buildRouter() {
DScopedRouter router = leftOverDomainsBuilder.buildRouter();
Map<String, DContentTypeRouter> domainToRouter = new HashMap<>();
for (Entry<String, ContentTypeBuilderImpl> entry : domainToRouteBuilder.entrySet()) {
DContentTypeRouter router2 = entry.getValue().buildRouter();
domainToRouter.put(entry.getKey(), router2);
}
return new CRouter(router, domainToRouter);
}
Aggregations