Search in sources :

Example 1 with Http2SocketImpl

use of org.webpieces.http2client.impl.Http2SocketImpl in project webpieces by deanhiller.

the class DirectHttp2Client method createHttpSocket.

public Http2Socket createHttpSocket(Http2SocketListener socketListener) {
    ConnectionListener listener = mgr.getHttpConnection();
    MockTcpChannel channel = new MockTcpChannel(false);
    return new Http2SocketImpl(new DelayedProxy(listener, channel), factory, socketListener);
}
Also used : MockTcpChannel(org.webpieces.webserver.test.MockTcpChannel) ConnectionListener(org.webpieces.nio.api.handlers.ConnectionListener) Http2SocketImpl(org.webpieces.http2client.impl.Http2SocketImpl)

Example 2 with Http2SocketImpl

use of org.webpieces.http2client.impl.Http2SocketImpl in project webpieces by deanhiller.

the class DirectHttp2Client method createHttpsSocket.

public Http2Socket createHttpsSocket(SSLEngine engine, Http2SocketListener socketListener) {
    ConnectionListener listener = mgr.getHttpConnection();
    MockTcpChannel channel = new MockTcpChannel(true);
    return new Http2SocketImpl(new DelayedProxy(listener, channel), factory, socketListener);
}
Also used : MockTcpChannel(org.webpieces.webserver.test.MockTcpChannel) ConnectionListener(org.webpieces.nio.api.handlers.ConnectionListener) Http2SocketImpl(org.webpieces.http2client.impl.Http2SocketImpl)

Aggregations

Http2SocketImpl (org.webpieces.http2client.impl.Http2SocketImpl)2 ConnectionListener (org.webpieces.nio.api.handlers.ConnectionListener)2 MockTcpChannel (org.webpieces.webserver.test.MockTcpChannel)2