Class URIHelper


  • public class URIHelper
    extends java.lang.Object
    A helper class for parsing uri from string and validating it against used schemes
    Author:
    P.Piernik
    • Constructor Summary

      Constructors 
      Constructor Description
      URIHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getPathFromURI​(java.net.URI uri)  
      static boolean isWebReady​(java.lang.String rawURI)  
      static boolean isWebReady​(java.net.URI uri)  
      static java.net.URI parseURI​(java.lang.String rawURI)  
      static void validateURI​(java.net.URI uri)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUPPORTED_LOCAL_FILE_SCHEMES

        public static final java.util.Set<java.lang.String> SUPPORTED_LOCAL_FILE_SCHEMES
      • SUPPORTED_URL_SCHEMES

        public static final java.util.Set<java.lang.String> SUPPORTED_URL_SCHEMES
    • Constructor Detail

      • URIHelper

        public URIHelper()
    • Method Detail

      • isWebReady

        public static boolean isWebReady​(java.lang.String rawURI)
      • isWebReady

        public static boolean isWebReady​(java.net.URI uri)
      • getPathFromURI

        public static java.lang.String getPathFromURI​(java.net.URI uri)