Class UrlLinkResolver


  • public class UrlLinkResolver
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String rootPath  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.URL resolveLocalUrl​(java.lang.String src)  
      java.net.URL resolveUrl​(java.lang.String src)  
      void setLocalRootPath​(java.lang.String rootPath)  
      • Methods inherited from class java.lang.Object

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

      • rootPath

        private java.lang.String rootPath
    • Constructor Detail

      • UrlLinkResolver

        public UrlLinkResolver​(java.lang.String localRootPath)
      • UrlLinkResolver

        public UrlLinkResolver()
    • Method Detail

      • resolveUrl

        public java.net.URL resolveUrl​(java.lang.String src)
                                throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • resolveLocalUrl

        public java.net.URL resolveLocalUrl​(java.lang.String src)
                                     throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • setLocalRootPath

        public void setLocalRootPath​(java.lang.String rootPath)