/** @return */ public ServerMetadata getRouteMetadata() { ServerMetadata m = new ServerMetadata(); m.setName(getName()); m.setPort(getPort()); m.setDefaultFormat(getDefaultFormat()); m.addAllSupportedFormats(getResponseProcessors().keySet()); m.addAllRoutes(routeDeclarations.getMetadata()); return m; }
public RegexRouteBuilder regex(String uriPattern, Object controller) { return routeDeclarations.regex(uriPattern, controller, routeDefaults); }
public ParameterizedRouteBuilder uri(String uriPattern, Object controller) { return routeDeclarations.uri(uriPattern, controller, routeDefaults); }
/** @return */ private RouteResolver createRouteResolver() { return new RouteResolver(routeDeclarations.createRouteMapping(routeDefaults)); }
/** * Can be called after routes are defined to augment or get data from all the currently-defined * routes. * * @param callback a Callback implementor. */ public void iterateRouteBuilders(Callback<RouteBuilder> callback) { routeDeclarations.iterateRouteBuilders(callback); }