org.apache.sling.servlets.resolver.internal.helper
Class NamedScriptResourceCollector

java.lang.Object
  extended by org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector
      extended by org.apache.sling.servlets.resolver.internal.helper.NamedScriptResourceCollector

public class NamedScriptResourceCollector
extends AbstractResourceCollector

The ResourceCollector class provides a single public method - AbstractResourceCollector.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, executionPaths, extension, hashCode, resourceSuperType, resourceType, workspaceName
 
Constructor Summary
NamedScriptResourceCollector(String baseResourceType, String resourceType, String resourceSuperType, String scriptName, String extension, String[] executionPaths)
           
 
Method Summary
static NamedScriptResourceCollector create(String name, Resource resource, String[] executionPaths)
           
 boolean equals(Object obj)
           
protected  void getWeightedResources(Set<Resource> resources, Resource location)
           
 
Methods inherited from class org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector
addWeightedResource, getResource, getServlets, hashCode, isPathAllowed, isPathAllowed, stringEquals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedScriptResourceCollector

public NamedScriptResourceCollector(String baseResourceType,
                                    String resourceType,
                                    String resourceSuperType,
                                    String scriptName,
                                    String extension,
                                    String[] executionPaths)
Method Detail

create

public static NamedScriptResourceCollector create(String name,
                                                  Resource resource,
                                                  String[] executionPaths)

getWeightedResources

protected void getWeightedResources(Set<Resource> resources,
                                    Resource location)
Specified by:
getWeightedResources in class AbstractResourceCollector

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractResourceCollector


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.