本文整理了Java中io.vertx.core.http.HttpConnection.localAddress()
方法的一些代码示例,展示了HttpConnection.localAddress()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpConnection.localAddress()
方法的具体详情如下:
包路径:io.vertx.core.http.HttpConnection
类名称:HttpConnection
方法名:localAddress
暂无
代码示例来源:origin: apache/servicecomb-java-chassis
clientRequest.connectionHandler(connection -> {
LOGGER.debug("http connection connected, local:{}, remote:{}.",
connection.localAddress(),
connection.remoteAddress());
connection.closeHandler(v -> {
LOGGER.debug("http connection closed, local:{}, remote:{}.",
connection.localAddress(),
connection.remoteAddress());
});
connection.exceptionHandler(e -> {
LOGGER.info("http connection exception, local:{}, remote:{}.",
connection.localAddress(),
connection.remoteAddress(),
e);
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* @return the remote address for this connection
*/
public io.vertx.rxjava.core.net.SocketAddress localAddress() {
if (cached_1 != null) {
return cached_1;
}
io.vertx.rxjava.core.net.SocketAddress ret = io.vertx.rxjava.core.net.SocketAddress.newInstance(delegate.localAddress());
cached_1 = ret;
return ret;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* @return the remote address for this connection
*/
public io.vertx.rxjava.core.net.SocketAddress localAddress() {
if (cached_1 != null) {
return cached_1;
}
io.vertx.rxjava.core.net.SocketAddress ret = io.vertx.rxjava.core.net.SocketAddress.newInstance(delegate.localAddress());
cached_1 = ret;
return ret;
}
代码示例来源:origin: org.apache.servicecomb/transport-rest-client
clientRequest.connectionHandler(connection -> {
LOGGER.debug("http connection connected, local:{}, remote:{}.",
connection.localAddress(),
connection.remoteAddress());
connection.closeHandler(v -> {
LOGGER.debug("http connection closed, local:{}, remote:{}.",
connection.localAddress(),
connection.remoteAddress());
});
connection.exceptionHandler(e -> {
LOGGER.info("http connection exception, local:{}, remote:{}.",
connection.localAddress(),
connection.remoteAddress(),
e);
内容来源于网络,如有侵权,请联系作者删除!