io.vertx.core.http.HttpConnection.localAddress()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中io.vertx.core.http.HttpConnection.localAddress()方法的一些代码示例,展示了HttpConnection.localAddress()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpConnection.localAddress()方法的具体详情如下:
包路径:io.vertx.core.http.HttpConnection
类名称:HttpConnection
方法名:localAddress

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);

相关文章