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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NamedScriptResourceCollectorcreate(String name, org.apache.sling.api.resource.Resource resource, String[] executionPaths, boolean useResourceCaching) booleanprotected voidgetWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, org.apache.sling.api.resource.Resource location) inthashCode()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, org.apache.sling.api.resource.Resource resource, String[] executionPaths, boolean useResourceCaching) -
getWeightedResources
protected void getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, org.apache.sling.api.resource.Resource location) - Specified by:
getWeightedResourcesin classAbstractResourceCollector
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractResourceCollector
-
equals
- Overrides:
equalsin classAbstractResourceCollector
-