private static ResourcesRoute getMonitorUIRoute() { return new ResourcesRoute("MonitorUIRoute", "/@/ui/monitor", MonitorRouter.class.getPackage().getName(), ImmutableMap.of("", "index.html")); } }
private static ResourcesRoute getMonitorUIRoute() { return new ResourcesRoute("MonitorUIRoute", "/@/ui/monitor", MonitorRouter.class.getPackage().getName(), ImmutableMap.of("", "index.html")); } }
@Provides @Named("LogUIRoute") public ResourcesRoute getLogResourcesRoute() { return new ResourcesRoute("LogUIRoute", "/@/ui/log", "restx/log", ImmutableMap.of("", "index.html")); } }
@Provides @Named("StatsUIRoute") public ResourcesRoute getStatsResourcesRoute() { return new ResourcesRoute("StatsUIRoute", "/@/ui/stats", "restx/stats/ui", ImmutableMap.of("", "index.html")); } }
@Provides public ResourcesRoute sourceUI() { return new ResourcesRoute("SourcesUIRoute", "/@/ui/sources", "restx/sources", ImmutableMap.of("", "index.html")); }
@Provides public ResourcesRoute sourceUI() { return new ResourcesRoute("SourcesUIRoute", "/@/ui/sources", "restx/sources", ImmutableMap.of("", "index.html")); }
@Provides public ResourcesRoute webjars() { return new ResourcesRoute( "WebjarsRoute", "/@/webjars", "META-INF/resources/webjars", ImmutableMap.<String, String>of(), Arrays.asList( new ResourcesRoute.CachedResourcePolicy( Predicates.<ResourcesRoute.ResourceInfo>alwaysTrue(), "max-age="+ TimeUnit.DAYS.toSeconds(100) ) ) ); } }
@Provides public ResourcesRoute webjars() { return new ResourcesRoute( "WebjarsRoute", "/@/webjars", "META-INF/resources/webjars", ImmutableMap.<String, String>of(), Arrays.asList( new ResourcesRoute.CachedResourcePolicy( Predicates.<ResourcesRoute.ResourceInfo>alwaysTrue(), "max-age="+ TimeUnit.DAYS.toSeconds(100) ) ) ); } }
final PermissionFactory permissionFactory) { super("SpecRecorderRouter", new ResourcesRoute("RecorderUIRoute", "/@/ui/recorder/", "restx.specs.recorder", ImmutableMap.of("", "index.html")), new StdRoute("RecorderRoute", new StdRestxRequestMatcher("GET", "/@/recorders")) { @Override
final PermissionFactory permissionFactory) { super("SpecRecorderRouter", new ResourcesRoute("RecorderUIRoute", "/@/ui/recorder/", "restx.specs.recorder", ImmutableMap.of("", "index.html")), new StdRoute("RecorderRoute", new StdRestxRequestMatcher("GET", "/@/recorders")) { @Override