Class MatchingResourcePath
- java.lang.Object
-
- org.forgerock.openam.forgerockrest.utils.MatchingResourcePath
-
public class MatchingResourcePath extends Object
A wrapper aroundResourcePaththat will be equal to another path if their paths match.Paths will be matched by comparing each path element, based on the following rules:
-
If the path element contains a parameter expression, e.g.
{param}, the name of the parameter will not be matched, but the other path will be expected to also contain a parameter in the same element. -
If the path element is a
*, then any value in that element of the other will match. - Otherwise, normal string equality to be used.
-
If the path element contains a parameter expression, e.g.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()static MatchingResourcePathmatch(org.forgerock.json.resource.ResourcePath path)Create a new MatchingResourcePath from the provided ResourcePath.static MatchingResourcePathresourcePath(String path)Create a MatchingResourcePath from the provided String representation.
-
-
-
Method Detail
-
match
public static MatchingResourcePath match(org.forgerock.json.resource.ResourcePath path)
Create a new MatchingResourcePath from the provided ResourcePath.- Parameters:
path- The path.- Returns:
- The matching path.
-
resourcePath
public static MatchingResourcePath resourcePath(String path)
Create a MatchingResourcePath from the provided String representation.- Parameters:
path- The path.- Returns:
- The matching path.
-
-