private void processSubResourceLocators(
FilterFactory ff,
ServerInjectableProviderContext injectableContext,
RulesMap<UriRule> rulesMap) {
for (final AbstractSubResourceLocator locator : resource.getSubResourceLocators()) {
UriTemplate t = new PathTemplate(locator.getPath().getValue());
PathPattern p = new PathPattern(t);
List<ResourceFilter> resourceFilters = ff.getResourceFilters(locator);
UriRule r = new SubLocatorRule(
t,
locator.getMethod(),
injectableContext.getInjectable(locator.getParameters(), ComponentScope.PerRequest),
ff.getRequestFilters(resourceFilters),
ff.getResponseFilters(resourceFilters));
rulesMap.put(p,
new RightHandPathRule(
config.getFeature(ResourceConfig.FEATURE_REDIRECT),
t.endsWithSlash(),
r));
}
}