public class SocketAddress extends Object
inetSocketAddress(int, java.lang.String)
to create an inet socket address and domainSocketAddress(java.lang.String)
to create a domain socket address
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SocketAddress> |
__TYPE_ARG |
Constructor and Description |
---|
SocketAddress(Object delegate) |
SocketAddress(SocketAddress delegate) |
Modifier and Type | Method and Description |
---|---|
static SocketAddress |
domainSocketAddress(String path)
Create a domain socket address from a
path . |
boolean |
equals(Object o) |
SocketAddress |
getDelegate() |
int |
hashCode() |
String |
host()
Returns the host name when available or the IP address in string representation.
|
String |
hostAddress()
Returns the host IP address when available or
null as a String. |
String |
hostName()
Returns the host name when available or
null
Domain socket address returns null . |
static SocketAddress |
inetSocketAddress(InetSocketAddress address)
Create a inet socket address from a Java .
|
static SocketAddress |
inetSocketAddress(int port,
String host)
Create an inet socket address,
host must be non null and port must be between 0
and 65536 . |
boolean |
isDomainSocket() |
boolean |
isInetSocket() |
static SocketAddress |
newInstance(SocketAddress arg) |
String |
path() |
int |
port() |
static SocketAddress |
sharedRandomPort(int id,
String host)
Create an inet socket address that binds to a shared random port identified by
id . |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<SocketAddress> __TYPE_ARG
public SocketAddress(SocketAddress delegate)
public SocketAddress(Object delegate)
public SocketAddress getDelegate()
public static SocketAddress sharedRandomPort(int id, String host)
id
.
host
string can be a host name or a host address.
id
- the shared random port idhost
- the hostpublic static SocketAddress inetSocketAddress(int port, String host)
host
must be non null
and port
must be between 0
and 65536
.
host
string can be a host name or a host address.
port
- the porthost
- the hostpublic static SocketAddress domainSocketAddress(String path)
path
.path
- the address pathpublic String host()
null
.public String hostName()
null
null
.public String hostAddress()
null
as a String.
null
.public int port()
-1
for a domain socketpublic String path()
null
for inet socket address, empty path represents unnamed domain socket addresses.public boolean isInetSocket()
true
for an inet socket addresspublic boolean isDomainSocket()
true
for an domain socket addresspublic static SocketAddress inetSocketAddress(InetSocketAddress address)
address
- the addresspublic static SocketAddress newInstance(SocketAddress arg)
Copyright © 2024 Eclipse. All rights reserved.