Class Uri.Authority
java.lang.Object
org.apache.pekko.http.javadsl.model.Authority
org.apache.pekko.http.scaladsl.model.Uri.Authority
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
- Enclosing class:
- Uri
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:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionhost()Host in a URIbooleanisEmpty()booleannonEmpty()normalizedFor(String scheme) normalizedForHttp(boolean encrypted) intport()A port number that may be `0` to signal the default port of for scheme.toString()userinfo()The percent decoded userinfo.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
Authority
 
- 
- 
Method Details- 
hostDescription copied from class:AuthorityHost in a URI
- 
portpublic int port()Description copied from class:AuthorityA 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::}
- 
userinfoDescription copied from class:AuthorityThe 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).
- 
isEmptypublic boolean isEmpty()
- 
nonEmptypublic boolean nonEmpty()
- 
normalizedForHttp
- 
normalizedFor
- 
toString
 
-