Package akka.http.javadsl.model
Class Authority
- java.lang.Object
-
- akka.http.javadsl.model.Authority
-
- Direct Known Subclasses:
Uri.Authority
public abstract class Authority extends java.lang.Object
Represents a hostname, port and user info.
-
-
Constructor Summary
Constructors Constructor Description Authority()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Authority
create(java.lang.String authority)
Returns a Authority created by parsing the given string representation.abstract Host
host()
Host in a URIabstract int
port()
A port number that may be `0` to signal the default port of for scheme.abstract java.lang.String
userinfo()
The percent decoded userinfo.
-
-
-
Method Detail
-
host
public abstract Host host()
Host in a URI
-
port
public abstract int 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 {@link Uri::port::}
-
userinfo
public abstract java.lang.String 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).
-
create
public static Authority create(java.lang.String authority)
Returns a Authority created by parsing the given string representation.
-
-