| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private final ExternalContext | |
| private final int | |
| private String | |
| private final String[] | |
| private final ArrayDeque |
| Access | Constructor and Description |
|---|---|
| public | ResourcePathsIterator(String rootPath, int maxDepth, String[] extensions, String[] restrictedDirectories, ExternalContext externalContext)
|
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| public boolean | |
| private static boolean | Returns: true if the resource path represents a directory, false otherwisethe resource path to check resourcePath)Checks if the given resource path obtained from |
| private static boolean | |
| public String | |
| private void | |
| private void |
| extensions | back to summary |
|---|---|
| private final String[] extensions | |
| externalContext | back to summary |
|---|---|
| private final ExternalContext externalContext | |
| maxDepth | back to summary |
|---|---|
| private final int maxDepth | |
| next | back to summary |
|---|---|
| private String next | |
| restrictedDirectories | back to summary |
|---|---|
| private final String[] restrictedDirectories | |
| stack | back to summary |
|---|---|
| private final ArrayDeque<String> stack | |
| ResourcePathsIterator | back to summary |
|---|---|
| public ResourcePathsIterator(String rootPath, int maxDepth, String[] extensions, String[] restrictedDirectories, ExternalContext externalContext) | |
| directoryExceedsMaxDepth | back to summary |
|---|---|
| private static boolean directoryExceedsMaxDepth(final String resourcePath, final long max) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| isDirectory | back to summary |
|---|---|
| private static boolean isDirectory(final String resourcePath) Checks if the given resource path obtained from
| |
| isValidCandidate | back to summary |
|---|---|
| private static boolean isValidCandidate(final String resourcePath, final String[] extensions) | |
| next | back to summary |
|---|---|
| public String next() Implements java. Doc from java. Returns the next element in the iteration. | |
| tryTake | back to summary |
|---|---|
| private void tryTake() | |
| visit | back to summary |
|---|---|
| private void visit(String resourcePath) | |