Modifier and Type | Method and Description |
---|---|
SocketAddress |
DatagramSocket.localAddress()
Return the
SocketAddress to which
this DatagramSocket is bound. |
SocketAddress |
DatagramPacket.sender()
Returns the
SocketAddress of the sender that sent
this DatagramPacket . |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
ServerWebSocket.localAddress() |
SocketAddress |
ServerWebSocketHandshake.localAddress() |
SocketAddress |
WebSocket.localAddress() |
SocketAddress |
HttpConnection.localAddress() |
SocketAddress |
HttpServerRequest.localAddress() |
SocketAddress |
ClientWebSocket.localAddress() |
SocketAddress |
WebSocketBase.localAddress() |
SocketAddress |
HttpConnection.localAddress(boolean real)
|
SocketAddress |
ServerWebSocket.remoteAddress() |
SocketAddress |
ServerWebSocketHandshake.remoteAddress() |
SocketAddress |
WebSocket.remoteAddress() |
SocketAddress |
HttpConnection.remoteAddress() |
SocketAddress |
HttpServerRequest.remoteAddress() |
SocketAddress |
ClientWebSocket.remoteAddress() |
SocketAddress |
WebSocketBase.remoteAddress() |
SocketAddress |
HttpConnection.remoteAddress(boolean real)
|
Modifier and Type | Method and Description |
---|---|
Single<HttpServer> |
HttpServer.listen(SocketAddress address)
Tell the server to start listening on the given address supplying
a handler that will be called when the server is actually
listening (or has failed).
|
Single<HttpServer> |
HttpServer.rxListen(SocketAddress address)
Tell the server to start listening on the given address supplying
a handler that will be called when the server is actually
listening (or has failed).
|
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SocketAddress> |
SocketAddress.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
static SocketAddress |
SocketAddress.domainSocketAddress(String path)
Create a domain socket address from a
path . |
static SocketAddress |
SocketAddress.inetSocketAddress(InetSocketAddress address)
Create a inet socket address from a Java .
|
static SocketAddress |
SocketAddress.inetSocketAddress(int port,
String host)
Create an inet socket address,
host must be non null and port must be between 0
and 65536 . |
SocketAddress |
NetSocket.localAddress() |
SocketAddress |
NetSocket.localAddress(boolean real)
|
static SocketAddress |
SocketAddress.newInstance(SocketAddress arg) |
SocketAddress |
NetSocket.remoteAddress() |
SocketAddress |
NetSocket.remoteAddress(boolean real)
|
static SocketAddress |
SocketAddress.sharedRandomPort(int id,
String host)
Create an inet socket address that binds to a shared random port identified by
id . |
Modifier and Type | Method and Description |
---|---|
Single<NetSocket> |
NetClient.connect(SocketAddress remoteAddress)
Open a connection to a server at the specific
remoteAddress . |
Single<NetSocket> |
NetClient.connect(SocketAddress remoteAddress,
String serverName)
Open a connection to a server at the specific
remoteAddress . |
Single<NetServer> |
NetServer.listen(SocketAddress localAddress)
Like
NetServer.listen() but providing a handler that will be notified when the server is listening, or fails. |
Single<NetSocket> |
NetClient.rxConnect(SocketAddress remoteAddress)
Open a connection to a server at the specific
remoteAddress . |
Single<NetSocket> |
NetClient.rxConnect(SocketAddress remoteAddress,
String serverName)
Open a connection to a server at the specific
remoteAddress . |
Single<NetServer> |
NetServer.rxListen(SocketAddress localAddress)
Like
NetServer.listen() but providing a handler that will be notified when the server is listening, or fails. |
Modifier and Type | Method and Description |
---|---|
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the port and host parameters. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
UriTemplate requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the port and host parameters. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the options parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and default host. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String host,
String requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and host parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
String host,
UriTemplate requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and host parameter. |
HttpRequest<Buffer> |
WebClient.request(HttpMethod method,
SocketAddress serverAddress,
UriTemplate requestURI)
Like
WebClient.request(io.vertx.core.http.HttpMethod, int, java.lang.String, java.lang.String) using the serverAddress parameter to connect to the
server instead of the default port and default host. |
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI)
Like
WebClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpRequest<Buffer> |
WebClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
UriTemplate absoluteURI)
Like
WebClient.requestAbs(io.vertx.core.http.HttpMethod, java.lang.String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
Modifier and Type | Method and Description |
---|---|
SocketAddress |
SockJSSocket.localAddress()
Return the local address for this socket
|
SocketAddress |
SockJSSocket.remoteAddress()
Return the remote address for this socket
|
Modifier and Type | Method and Description |
---|---|
<Req,Resp,T> |
GrpcClient.call(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> service,
Handler<GrpcClientRequest<Req,Resp>> requestHandler,
java.util.function.Function<GrpcClientResponse<Req,Resp>,Single<T>> resultFn)
Deprecated.
|
Single<GrpcClientRequest<Buffer,Buffer>> |
GrpcClient.request(SocketAddress server)
Connect to the remote
server and create a request for any hosted gRPC service. |
<Req,Resp> Single<GrpcClientRequest<Req,Resp>> |
GrpcClient.request(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> service)
Deprecated.
|
<Req,Resp> Single<GrpcClientRequest<Req,Resp>> |
GrpcClient.request(SocketAddress server,
ServiceMethod<Resp,Req> method)
Connect to the remote
server and create a request for any hosted gRPC service. |
<Req,Resp,T> |
GrpcClient.rxCall(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> service,
Handler<GrpcClientRequest<Req,Resp>> requestHandler,
java.util.function.Function<GrpcClientResponse<Req,Resp>,Single<T>> resultFn)
Deprecated.
|
Single<GrpcClientRequest<Buffer,Buffer>> |
GrpcClient.rxRequest(SocketAddress server)
Connect to the remote
server and create a request for any hosted gRPC service. |
<Req,Resp> Single<GrpcClientRequest<Req,Resp>> |
GrpcClient.rxRequest(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> service)
Deprecated.
|
<Req,Resp> Single<GrpcClientRequest<Req,Resp>> |
GrpcClient.rxRequest(SocketAddress server,
ServiceMethod<Resp,Req> method)
Connect to the remote
server and create a request for any hosted gRPC service. |
Modifier and Type | Method and Description |
---|---|
<Req,Resp,T> |
GrpcIoClient.call(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> service,
Handler<GrpcClientRequest<Req,Resp>> requestHandler,
java.util.function.Function<GrpcClientResponse<Req,Resp>,Single<T>> resultFn)
Call the
service gRPC service hosted by server . |
<Req,Resp,T> |
GrpcIoClient.rxCall(SocketAddress server,
io.grpc.MethodDescriptor<Req,Resp> service,
Handler<GrpcClientRequest<Req,Resp>> requestHandler,
java.util.function.Function<GrpcClientResponse<Req,Resp>,Single<T>> resultFn)
Call the
service gRPC service hosted by server . |
Modifier and Type | Method and Description |
---|---|
HttpProxy |
HttpProxy.origin(SocketAddress address)
Set the
SocketAddress of the origin. |
Modifier and Type | Method and Description |
---|---|
HttpProxy |
HttpProxy.originSelector(java.util.function.Function<HttpServerRequest,Single<SocketAddress>> selector)
Set a selector that resolves the origin address based on the incoming HTTP request.
|
Modifier and Type | Method and Description |
---|---|
SocketAddress |
MqttEndpoint.localAddress() |
SocketAddress |
MqttEndpoint.remoteAddress() |
Copyright © 2024 Eclipse. All rights reserved.