Package io.vertx.rxjava3.core.net
Class HostAndPort
- java.lang.Object
-
- io.vertx.rxjava3.core.net.HostAndPort
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HostAndPort>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description HostAndPort(HostAndPort delegate)HostAndPort(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostAndPortauthority(String host)Likeauthority(java.lang.String, int)without a port,-1is used instead.static HostAndPortauthority(String host, int port)Create an instance with a validhostfor a valid authority: thehostmust match the host rule of rfc3986.static HostAndPortcreate(String host, int port)Create an arbitrary instance.booleanequals(Object o)HostAndPortgetDelegate()inthashCode()Stringhost()static HostAndPortnewInstance(HostAndPort arg)static HostAndPortparseAuthority(String string, int schemePort)Parse an authority HTTP header, that is host [':' port], according to rfc3986.intport()StringtoString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<HostAndPort> __TYPE_ARG
-
-
Constructor Detail
-
HostAndPort
public HostAndPort(HostAndPort delegate)
-
HostAndPort
public HostAndPort(Object delegate)
-
-
Method Detail
-
getDelegate
public HostAndPort getDelegate()
-
create
public static HostAndPort create(String host, int port)
Create an arbitrary instance.- Parameters:
host- the host valueport- the port value- Returns:
- the instance.
-
parseAuthority
public static HostAndPort parseAuthority(String string, int schemePort)
Parse an authority HTTP header, that is host [':' port], according to rfc3986.- Parameters:
string- the string to parseschemePort- the scheme port used when the optional port is not specified- Returns:
- the parsed authority or
nullwhen thestringdoes not represent a valid authority.
-
authority
public static HostAndPort authority(String host, int port)
Create an instance with a validhostfor a valid authority: thehostmust match the host rule of rfc3986.- Parameters:
host- the host portionport- the port- Returns:
- the instance
-
authority
public static HostAndPort authority(String host)
Likeauthority(java.lang.String, int)without a port,-1is used instead.- Parameters:
host-- Returns:
-
host
public String host()
- Returns:
- the host value
-
port
public int port()
- Returns:
- the port value or
-1when not specified
-
newInstance
public static HostAndPort newInstance(HostAndPort arg)
-
-