Class URIParsedResult


  • public final class URIParsedResult
    extends ParsedResult
    A simple result type encapsulating a URI that has no further interpretation.
    • Field Detail

      • uri

        private final java.lang.String uri
      • title

        private final java.lang.String title
    • Constructor Detail

      • URIParsedResult

        public URIParsedResult​(java.lang.String uri,
                               java.lang.String title)
    • Method Detail

      • getURI

        public java.lang.String getURI()
      • getTitle

        public java.lang.String getTitle()
      • isPossiblyMaliciousURI

        @Deprecated
        public boolean isPossiblyMaliciousURI()
        Returns:
        true if the URI contains suspicious patterns that may suggest it intends to mislead the user about its true nature
      • massageURI

        private static java.lang.String massageURI​(java.lang.String uri)
        Transforms a string that represents a URI into something more proper, by adding or canonicalizing the protocol.
      • isColonFollowedByPortNumber

        private static boolean isColonFollowedByPortNumber​(java.lang.String uri,
                                                           int protocolEnd)