Class MatchingResourcePath


  • public class MatchingResourcePath
    extends Object
    A wrapper around ResourcePath that 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.
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object