@Override public void upgrade(Connection newConnection) { _endp.upgrade(newConnection); } }
@Override public void upgrade(Connection newConnection) { _endp.upgrade(newConnection); } }
@Override public void upgrade(final Connection newConnection) { _underlying.upgrade(newConnection); }
private void replaceConnection() { EndPoint endPoint = getEndPoint(); try { endPoint.upgrade(connectionFactory.newConnection(endPoint, context)); } catch (Throwable x) { LOG.debug(x); close(); } }
private void replaceConnection() { EndPoint endPoint = getEndPoint(); try { endPoint.upgrade(connectionFactory.newConnection(endPoint, context)); } catch (Throwable x) { LOG.debug(x); close(); } }
private void replaceConnection() { EndPoint endPoint = getEndPoint(); try { endPoint.upgrade(connectionFactory.newConnection(endPoint, context)); } catch (Throwable x) { LOG.debug(x); close(); } }
private void tunnelSucceeded(EndPoint endPoint) { try { // Replace the promise back with the original context.put(HttpClientTransport.HTTP_CONNECTION_PROMISE_CONTEXT_KEY, promise); HttpDestination destination = (HttpDestination)context.get(HttpClientTransport.HTTP_DESTINATION_CONTEXT_KEY); HttpClient client = destination.getHttpClient(); ClientConnectionFactory sslConnectionFactory = client.newSslClientConnectionFactory(connectionFactory); HttpConnectionOverHTTP oldConnection = (HttpConnectionOverHTTP)endPoint.getConnection(); org.eclipse.jetty.io.Connection newConnection = sslConnectionFactory.newConnection(endPoint, context); // Creating the connection will link the new Connection the EndPoint, // but we need the old Connection linked for the upgrade to do its job. endPoint.setConnection(oldConnection); endPoint.upgrade(newConnection); if (LOG.isDebugEnabled()) LOG.debug("HTTP tunnel established: {} over {}", oldConnection, newConnection); } catch (Throwable x) { tunnelFailed(endPoint, x); } }
private void tunnel() { try { HttpDestination destination = (HttpDestination)context.get(HttpClientTransport.HTTP_DESTINATION_CONTEXT_KEY); HttpClient client = destination.getHttpClient(); ClientConnectionFactory connectionFactory = this.connectionFactory; if (destination.isSecure()) connectionFactory = client.newSslClientConnectionFactory(connectionFactory); org.eclipse.jetty.io.Connection newConnection = connectionFactory.newConnection(getEndPoint(), context); getEndPoint().upgrade(newConnection); if (LOG.isDebugEnabled()) LOG.debug("SOCKS4 tunnel established: {} over {}", this, newConnection); } catch (Throwable x) { failed(x); } }
endPoint.upgrade(newConnection);
endPoint.upgrade(newConnection);
endPoint.upgrade(newConnection);
endPoint.upgrade(newConnection);
endPoint.upgrade(newConnection);
endPoint.upgrade(newConnection);
@Override public void write (final Callback v, final ByteBuffer... b) throws WritePendingException { endPoint.write(v, b); } @Override public void setConnection (final Connection v) { endPoint.setConnection(v); } @Override public void upgrade (final Connection v) { endPoint.upgrade(v); } @Override public void fillInterested (final Callback v) throws ReadPendingException { endPoint.fillInterested(v); } @Override public int hashCode() { return endPoint.hashCode(); }
endp.upgrade(connection);
LOG.debug("Upgrade from {} to {}", this, connection); _channel.getState().upgrade(); getEndPoint().upgrade(connection); _channel.recycle(); _parser.reset();
LOG.debug("Upgrade from {} to {}", this, connection); _channel.getState().upgrade(); getEndPoint().upgrade(connection); _channel.recycle(); _parser.reset();
getEndPoint().upgrade(connection); _channel.reset(); _parser.reset();