@Override public SocketAddress getLocalAddress() { return channel.getLocalAddress(); }
@Override public <A extends SocketAddress> A getLocalAddress(final Class<A> type) { return channel.getLocalAddress(type); }
/** {@inheritDoc} */ @Override public SocketAddress getLocalAddress() { return connection.getLocalAddress(); }
@Override public SocketAddress getLocalAddress() { return delegate.getLocalAddress(); }
@Override public SocketAddress getLocalAddress() { return channel.getLocalAddress(); }
@Override public <A extends SocketAddress> A getLocalAddress(Class<A> type) { return channel.getLocalAddress(type); }
@Override public SocketAddress getLocalAddress() { return connection.getLocalAddress(); }
@Override public <A extends SocketAddress> A getLocalAddress(Class<A> type) { return connection.getLocalAddress(type); }
InetSocketAddress getLocalAddress() { return connection.getLocalAddress(InetSocketAddress.class); }
public SocketAddress getLocalAddress() { return streamConnection.getLocalAddress(); }
@Override public String toString() { return getClass().getSimpleName() + " peer " + channel.getPeerAddress() + " local " + channel.getLocalAddress() + "[ " + (receiver == null ? "No Receiver" : receiver.toString()) + " " + pendingFrames.toString() + " -- " + heldFrames.toString() + " -- " + newFrames.toString() + "]"; }
RemoteConnection(final StreamConnection connection, final SslChannel sslChannel, final OptionMap optionMap, final RemoteConnectionProvider remoteConnectionProvider) { this.connection = connection; this.messageReader = new MessageReader(connection.getSourceChannel(), writeListener.queue); this.sslChannel = sslChannel; this.optionMap = optionMap; heartbeatInterval = optionMap.get(RemotingOptions.HEARTBEAT_INTERVAL, RemotingOptions.DEFAULT_HEARTBEAT_INTERVAL); Messages.conn.tracef("Initialized connection from %s to %s with options %s", connection.getPeerAddress(), connection.getLocalAddress(), optionMap); this.executor = remoteConnectionProvider.getExecutor(); this.remoteConnectionProvider = remoteConnectionProvider; }
synchronized (this) { if (!providerLogged) { UndertowLogger.REQUEST_LOGGER.debugf("ALPN has been configured however no provider could be found for engine %s for connector at %s", engine, channel.getLocalAddress()); providerLogged = true; synchronized (this) { if (!providerLogged) { UndertowLogger.REQUEST_LOGGER.debugf("Using ALPN provider %s for connector at %s", provider, channel.getLocalAddress()); providerLogged = true;
public void accept(final StreamConnection channel) { if (channel.getWorker() != getXnioWorker()) { throw conn.invalidWorker(); } try { channel.setOption(Options.TCP_NODELAY, Boolean.TRUE); } catch (IOException e) { // ignore } final SslChannel sslChannel = channel instanceof SslConnection ? (SslConnection) channel : null; final RemoteConnection connection = new RemoteConnection(channel, sslChannel, optionMap, HttpUpgradeConnectionProvider.this); final ServerConnectionOpenListener openListener = new ServerConnectionOpenListener(connection, getConnectionProviderContext(), saslAuthenticationFactory, optionMap); channel.getSinkChannel().setWriteListener(connection.getWriteListener()); conn.tracef("Accepted connection from %s to %s", channel.getPeerAddress(), channel.getLocalAddress()); openListener.handleEvent(channel.getSourceChannel()); } }
@Override public SocketAddress getLocalAddress() { return delegate.getLocalAddress(); }
@Override public <A extends SocketAddress> A getLocalAddress(Class<A> type) { return channel.getLocalAddress(type); }
@Override public SocketAddress getLocalAddress() { return connection.getLocalAddress(); }
@Override public SocketAddress getLocalAddress() { return channel.getLocalAddress(); }
@Override protected SocketAddress localAddress0() { StreamConnection conn = connection(); if (conn == null) { return null; } return conn.getLocalAddress(); }
RemoteConnection(final StreamConnection connection, final SslChannel sslChannel, final OptionMap optionMap, final RemoteConnectionProvider remoteConnectionProvider) { this.connection = connection; this.messageReader = new MessageReader(connection.getSourceChannel(), writeListener.queue); this.sslChannel = sslChannel; this.optionMap = optionMap; heartbeatInterval = optionMap.get(RemotingOptions.HEARTBEAT_INTERVAL, RemotingOptions.DEFAULT_HEARTBEAT_INTERVAL); Messages.conn.tracef("Initialized connection from %s to %s with options %s", connection.getPeerAddress(), connection.getLocalAddress(), optionMap); this.executor = remoteConnectionProvider.getExecutor(); this.remoteConnectionProvider = remoteConnectionProvider; }