Class UriWrapper


  • public class UriWrapper
    extends java.lang.Object
    Class for easily building and manipulating URIs. Tools to easily append paths and not have to deal with checking whether the path delimiter is present or not.
    • Field Detail

      • EMPTY_FRAGMENT

        public static final java.lang.String EMPTY_FRAGMENT
      • EMPTY_PATH

        public static final java.lang.String EMPTY_PATH
    • Constructor Detail

      • UriWrapper

        public UriWrapper​(java.net.URI uri)
      • UriWrapper

        public UriWrapper​(java.lang.String uri)
      • UriWrapper

        public UriWrapper​(java.lang.String scheme,
                          java.lang.String host)
    • Method Detail

      • getUri

        public java.net.URI getUri()
      • addChild

        public UriWrapper addChild​(java.lang.String... path)
      • addChild

        public UriWrapper addChild​(UnixPath childPath)
        Appends a path to the URI.
        Parameters:
        childPath - the path to be appended.
        Returns:
        a UriWrapper containing the whole path.
      • toS3bucketPath

        public UnixPath toS3bucketPath()
      • getParent

        public java.util.Optional<UriWrapper> getParent()
      • getFilename

        public java.lang.String getFilename()