public class ResourcePredicates extends Object
Constructor and Description |
---|
ResourcePredicates() |
Modifier and Type | Method and Description |
---|---|
static Predicate<Resource> |
pathEquals(String path) |
static Predicate<Resource> |
pathMatches(Pattern pattern)
Matches if the input
Resource 's handle matches the given pattern. |
static Predicate<Resource> |
pathMatches(Predicate<String> predicate) |
static Predicate<Resource> |
pathMatches(String pattern) |
static Predicate<Resource> |
pathMatchesGlob(String globPattern) |
static Predicate<Resource> |
pathStartsWith(String pathPrefix) |
public static Predicate<Resource> pathMatchesGlob(String globPattern)
pathMatches(Pattern)
,
pathMatches(Predicate)
public static Predicate<Resource> pathMatches(String pattern)
pathMatches(Pattern)
,
pathMatches(Predicate)
public static Predicate<Resource> pathMatches(Pattern pattern)
Resource
's handle matches the given pattern.
Matches incomplete strings by default, e.g /bar
pattern will match the /foo/bar/qux
resource,
while ^/bar
won't.pathMatches(String)
,
pathMatches(Predicate)
public static Predicate<Resource> pathMatches(Predicate<String> predicate)
pathMatches(String)
,
pathMatches(Pattern)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.