use of org.webpieces.webserver.test.MockTcpChannel in project webpieces by deanhiller.
the class DirectHttp11Client method createHttpSocket.
public HttpSocket createHttpSocket(HttpSocketListener closeListener) {
ConnectionListener listener = mgr.getHttpConnection();
MockTcpChannel channel = new MockTcpChannel(false);
return new HttpSocketImpl(new DelayedProxy(listener, channel), parser, closeListener, false);
// return new Http11SocketImpl(listener, channel, parser, false);
}
use of org.webpieces.webserver.test.MockTcpChannel in project webpieces by deanhiller.
the class DirectHttp11Client method createHttpsSocket.
public HttpSocket createHttpsSocket(SSLEngine engine, HttpSocketListener closeListener) {
ConnectionListener listener = mgr.getHttpsConnection();
MockTcpChannel channel = new MockTcpChannel(true);
return new HttpSocketImpl(new DelayedProxy(listener, channel), parser, closeListener, true);
}
use of org.webpieces.webserver.test.MockTcpChannel 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);
}
use of org.webpieces.webserver.test.MockTcpChannel 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);
}
Aggregations