Class URIUtils

java.lang.Object
org.owasp.validator.html.util.URIUtils

public class URIUtils extends Object
A utility class for URI handling
Author:
Keith Visco
  • Constructor Details

    • URIUtils

      public URIUtils()
  • Method Details

    • resolveAsString

      public static String resolveAsString(String href, String documentBase)
    • normalize

      public static String normalize(String absoluteURL) throws MalformedURLException
      This method removes "." or ".." from absolute URL. I needed this method because the JDK doesn't do this automatically when creating URLs.
      Parameters:
      absoluteURL - the absolute URI to normalize
      Throws:
      MalformedURLException