Class Uri

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class Uri
    extends Inventor
    implements java.lang.Cloneable
    This class represents a Uniform Resource Identifier (URI). A Uniform Resource Identifier (URI) is a compact sequence of characters that identifies an abstract or physical resource.

    • Constructor Summary

      Constructors 
      Constructor Description
      Uri​(Uri obj)
      Copy constructor.
      Uri​(java.lang.String uri)
      Creates an Uri object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      java.lang.String getAuthority()
      Returns the Domain Name System (DNS) host name or IP address and the port number for a server.
      java.lang.String getPath()
      Returns the path of the URI.
      java.lang.String getPathAndQuery()
      Returns the Path and Query properties separated by a question mark (?).
      java.lang.String getPort()
      Returns the port number of this URI.
      java.lang.String getQuery()
      Returns any query information included in the specified URI.
      java.lang.String getScheme()
      Returns the scheme name for this URI.
      boolean isAbsolute()
      Returns whether the Uri instance is absolute.
      • Methods inherited from class java.lang.Object

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

      • Uri

        public Uri​(Uri obj)
        Copy constructor.
      • Uri

        public Uri​(java.lang.String uri)
        Creates an Uri object.
    • Method Detail

      • clone

        public java.lang.Object clone()
      • isAbsolute

        public boolean isAbsolute()
        Returns whether the Uri instance is absolute.
      • getPort

        public java.lang.String getPort()
        Returns the port number of this URI.
      • getAuthority

        public java.lang.String getAuthority()
        Returns the Domain Name System (DNS) host name or IP address and the port number for a server.
      • getQuery

        public java.lang.String getQuery()
        Returns any query information included in the specified URI.
      • getScheme

        public java.lang.String getScheme()
        Returns the scheme name for this URI.
      • getPathAndQuery

        public java.lang.String getPathAndQuery()
        Returns the Path and Query properties separated by a question mark (?).
      • getPath

        public java.lang.String getPath()
        Returns the path of the URI.