@Test public void shouldGetRemoteAddress() { SocketAddress original = SocketAddress.inetSocketAddress(8080, "localhost"); given(mockHttpServerRequest.remoteAddress()).willReturn(original); InetSocketAddress expected = new InetSocketAddress("localhost", 8080); assertThat(vertxServerHttpRequest.getRemoteAddress()).isEqualTo(expected); }
@Override public InetSocketAddress getRemoteAddress() { SocketAddress address = delegate.remoteAddress(); if (address == null) { return null; } return new InetSocketAddress(address.host(), address.port()); }
VertxServerHttpRequest extends AbstractServerHttpRequest { @Override public InetSocketAddress getRemoteAddress() { SocketAddress address = delegate.remoteAddress(); if (address == null) { return null; } return new InetSocketAddress(address.host(), address.port()); } }
VertxServerHttpRequest extends AbstractServerHttpRequest { @Override public InetSocketAddress getRemoteAddress() { SocketAddress address = delegate.remoteAddress(); if (address == null) { return null; } return new InetSocketAddress(address.host(), address.port()); } VertxServerHttpRequest(RoutingContext context, BufferConverter bufferConverter); }
VertxServerHttpRequest extends AbstractServerHttpRequest { @Override public InetSocketAddress getRemoteAddress() { SocketAddress address = delegate.remoteAddress(); if (address == null) { return null; } return new InetSocketAddress(address.host(), address.port()); } VertxServerHttpRequest(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeRequest(); @Override String getMethodValue(); @Override Flux<DataBuffer> getBody(); @Override InetSocketAddress getRemoteAddress(); }
VertxServerHttpRequest extends AbstractServerHttpRequest { @Override public InetSocketAddress getRemoteAddress() { SocketAddress address = delegate.remoteAddress(); if (address == null) { return null; } return new InetSocketAddress(address.host(), address.port()); } VertxServerHttpRequest(RoutingContext context, BufferConverter bufferConverter); @SuppressWarnings("unchecked") @Override T getNativeRequest(); @Override String getMethodValue(); @Override Flux<DataBuffer> getBody(); @Override InetSocketAddress getRemoteAddress();  }