public class NamedScriptResourceCollector extends AbstractResourceCollector
ResourceCollector class provides a single public method -
#getServlets(ResourceResolver) - which is used to find an ordered collection
of Resource instances which may be used to find a servlet or
script to handle a request to the given resource.baseResourceType, executionPaths, extension, hashCode, resourceSuperType, resourceType| Constructor and Description |
|---|
NamedScriptResourceCollector(String baseResourceType,
String resourceType,
String resourceSuperType,
String scriptName,
String extension,
String[] executionPaths) |
| Modifier and Type | Method and Description |
|---|---|
static NamedScriptResourceCollector |
create(String name,
org.apache.sling.api.resource.Resource resource,
String[] executionPaths) |
boolean |
equals(Object obj) |
protected void |
getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources,
org.apache.sling.api.resource.Resource location) |
addWeightedResource, getResource, getServlets, hashCode, stringEqualspublic static NamedScriptResourceCollector create(String name, org.apache.sling.api.resource.Resource resource, String[] executionPaths)
protected void getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, org.apache.sling.api.resource.Resource location)
getWeightedResources in class AbstractResourceCollectorpublic boolean equals(Object obj)
equals in class AbstractResourceCollectorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.