Class NamedScriptResourceCollector
java.lang.Object
org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector
org.apache.sling.servlets.resolver.internal.helper.NamedScriptResourceCollector
The
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.-
Field Summary
Fields inherited from class org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector
baseResourceType, CACHE_KEY_CHILDREN_LIST, CACHE_KEY_RESOURCES, executionPaths, extension, hashCode, resourceSuperType, resourceType, useResourceCaching
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NamedScriptResourceCollector
boolean
protected void
getWeightedResources
(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, Resource location) int
hashCode()
Methods inherited from class org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector
addWeightedResource, clearCache, getResource, getResourceOrNull, getServlets, stringEquals
-
Constructor Details
-
NamedScriptResourceCollector
-
-
Method Details
-
create
public static NamedScriptResourceCollector create(String name, Resource resource, String[] executionPaths, boolean useResourceCaching) -
getWeightedResources
protected void getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, Resource location) - Specified by:
getWeightedResources
in classAbstractResourceCollector
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractResourceCollector
-
equals
- Overrides:
equals
in classAbstractResourceCollector
-