Class Uri.Authority

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product
    Enclosing class:
    Uri

    public static final class Uri.Authority
    extends Authority
    implements scala.Product, java.io.Serializable
    param: port A port number that may be 0 to signal the default port of for scheme. In general what you want is not the value of this field but Uri.effectivePort. param: userinfo The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (:). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Authority​(Uri.Host host, int port, java.lang.String userinfo)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Uri.Host host()
      Host in a URI
      boolean isEmpty()  
      boolean nonEmpty()  
      Uri.Authority normalizedFor​(java.lang.String scheme)  
      Uri.Authority normalizedForHttp​(boolean encrypted)  
      int port()
      A port number that may be `0` to signal the default port of for scheme.
      java.lang.String toString()  
      java.lang.String userinfo()
      The percent decoded userinfo.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
    • Constructor Detail

      • Authority

        public Authority​(Uri.Host host,
                         int port,
                         java.lang.String userinfo)
    • Method Detail

      • port

        public int port()
        Description copied from class: Authority
        A port number that may be `0` to signal the default port of for scheme. In general what you want is not the value of this field but {@link Uri::port::}
        Specified by:
        port in class Authority
      • userinfo

        public java.lang.String userinfo()
        Description copied from class: Authority
        The percent decoded userinfo. According to https://tools.ietf.org/html/rfc3986#section-3.2.1 the "user:password" syntax is deprecated and implementations are encouraged to ignore any characters after the colon (`:`). Therefore, it is not guaranteed that future versions of this class will preserve full userinfo between parsing and rendering (even if it might do so right now).
        Specified by:
        userinfo in class Authority
      • isEmpty

        public boolean isEmpty()
      • nonEmpty

        public boolean nonEmpty()
      • normalizedForHttp

        public Uri.Authority normalizedForHttp​(boolean encrypted)
      • normalizedFor

        public Uri.Authority normalizedFor​(java.lang.String scheme)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object