Class UriPath


  • public class UriPath
    extends java.lang.Object
    Used for converting URL paths.
    • Constructor Summary

      Constructors 
      Constructor Description
      UriPath()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String canonical​(java.lang.String path)
      Convert a path to a cananonical form.
      • Methods inherited from class java.lang.Object

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

      • UriPath

        public UriPath()
    • Method Detail

      • canonical

        public static java.lang.String canonical​(java.lang.String path)
        Convert a path to a cananonical form. All instances of "." and ".." are factored out. Null is returned if the path tries to .. above its root.
        Parameters:
        path - the path to convert
        Returns:
        path or null.