Class BasicURLComparator

    • Field Detail

      • caseInsensitive

        private boolean caseInsensitive
        The case-insensitivity flag.
    • Constructor Detail

      • BasicURLComparator

        public BasicURLComparator()
    • Method Detail

      • isCaseInsensitive

        public boolean isCaseInsensitive()
        Get the case-insensitivity flag value.
        Returns:
        Returns the caseInsensitive.
      • setCaseInsensitive

        public void setCaseInsensitive​(boolean flag)
        Set the case-insensitivity flag value.
        Parameters:
        flag - The caseInsensitive to set.
      • compare

        public boolean compare​(@Nullable
                               String uri1,
                               @Nullable
                               String uri2)
                        throws URIException
        Compare two URI's (represented as strings) for equivalence..
        Specified by:
        compare in interface URIComparator
        Parameters:
        uri1 - first URI to compare
        uri2 - second URI to compare
        Returns:
        true if the URI's are equivalent, false otherwise
        Throws:
        URIException - if the URI's can not be successfully evaluated