Class StandardURIChecker

  • All Implemented Interfaces:
    URIChecker

    public class StandardURIChecker
    extends java.lang.Object
    implements URIChecker
    This class checks whether a string is a valid URI. Different checking rules can be chosen by including a different URIChecker in the ConversionRules used when the value is checked.
    • Constructor Detail

      • StandardURIChecker

        protected StandardURIChecker()
        Protected constructor to allow subclassing
    • Method Detail

      • isValidURI

        public boolean isValidURI​(java.lang.String value)
        Validate a string to determine whether it is a valid URI
        Specified by:
        isValidURI in interface URIChecker
        Parameters:
        value - the string to be checked
        Returns:
        true if the string is considered to be a valid URI
      • passesAdditionalChecks

        public boolean passesAdditionalChecks​(java.net.URI uri)
      • checkThoroughly

        public void checkThoroughly​(java.net.URI uri)
                             throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • main

        public static void main​(java.lang.String[] args)