| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<HostAndPort> |
__TYPE_ARG |
| Constructor and Description |
|---|
HostAndPort(HostAndPort delegate) |
HostAndPort(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
static HostAndPort |
authority(String host)
Like
authority(java.lang.String, int) without a port, -1 is used instead. |
static HostAndPort |
authority(String host,
int port)
Create an instance with a valid
host for a valid authority: the host must
match the host rule of rfc3986. |
static HostAndPort |
create(String host,
int port)
Create an arbitrary instance.
|
boolean |
equals(Object o) |
HostAndPort |
getDelegate() |
int |
hashCode() |
String |
host() |
static HostAndPort |
newInstance(HostAndPort arg) |
static HostAndPort |
parseAuthority(String string,
int schemePort)
Parse an authority HTTP header, that is host [':' port], according to
rfc3986.
|
int |
port() |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<HostAndPort> __TYPE_ARG
public HostAndPort(HostAndPort delegate)
public HostAndPort(Object delegate)
public HostAndPort getDelegate()
public static HostAndPort create(String host, int port)
host - the host valueport - the port valuepublic static HostAndPort parseAuthority(String string, int schemePort)
string - the string to parseschemePort - the scheme port used when the optional port is not specifiednull when the string does not represent a valid authority.public static HostAndPort authority(String host, int port)
host for a valid authority: the host must
match the host rule of rfc3986.host - the host portionport - the portpublic static HostAndPort authority(String host)
authority(java.lang.String, int) without a port, -1 is used instead.host - public String host()
public int port()
-1 when not specifiedpublic static HostAndPort newInstance(HostAndPort arg)
Copyright © 2024 Eclipse. All rights reserved.