Package org.apache.sling.servlets.resolver.internal.helper

# Klasse NamedScriptResourceCollector

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

public class NamedScriptResourceCollector extends AbstractResourceCollector
The `ResourceCollector` class provides a single public method -
Ungültige Referenz

    #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.

## Feldübersicht

### Von Klasse geerbte Felder org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector

`baseResourceType, CACHE_KEY_CHILDREN_LIST, CACHE_KEY_RESOURCES, executionPaths, extension, hashCode, resourceSuperType, resourceType, useResourceCaching`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`NamedScriptResourceCollector(String baseResourceType, String resourceType, String resourceSuperType, String scriptName, String extension, String[] executionPaths, boolean useResourceCaching)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`static NamedScriptResourceCollector`
`create(String name, org.apache.sling.api.resource.Resource resource, String[] executionPaths, boolean useResourceCaching)`
`boolean`
`equals(Object obj)`
`protected void`
`getWeightedResources(Set<org.apache.sling.servlets.resolver.internal.helper.WeightedResource> resources, org.apache.sling.api.resource.Resource location)`
`int`
`hashCode()`

### Von Klasse geerbte Methoden org.apache.sling.servlets.resolver.internal.helper.AbstractResourceCollector

`addWeightedResource, clearCache, getResource, getResourceOrNull, getServlets, stringEquals`

### Von Klasse geerbte Methoden java.lang.Object

`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

## Konstruktordetails

### NamedScriptResourceCollector

public NamedScriptResourceCollector(String baseResourceType, String resourceType, String resourceSuperType, String scriptName, String extension, String[] executionPaths, boolean useResourceCaching)

## Methodendetails

### 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)

Angegeben von:
  `getWeightedResources` in Klasse `AbstractResourceCollector`

### hashCode

public int hashCode()

Setzt außer Kraft:
  `hashCode` in Klasse `AbstractResourceCollector`

### equals

public boolean equals(Object obj)

Setzt außer Kraft:
  `equals` in Klasse `AbstractResourceCollector`