
org.webpieces.webserver.test.http2.directfast.DirectFastClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-webserver-test Show documentation
Show all versions of http-webserver-test Show documentation
The full webpieces server AS A library
The newest version!
package org.webpieces.webserver.test.http2.directfast;
import javax.net.ssl.SSLEngine;
import org.webpieces.http2client.api.Http2Client;
import org.webpieces.http2client.api.Http2Socket;
import org.webpieces.http2client.api.Http2SocketListener;
public class DirectFastClient implements Http2Client {
private MockFrontendManager frontEnd;
public DirectFastClient(MockFrontendManager frontEnd) {
this.frontEnd = frontEnd;
}
@Override
public Http2Socket createHttpSocket(Http2SocketListener listener) {
return new MockHttp2Socket(listener, frontEnd.getHttpListener(), false);
}
@Override
public Http2Socket createHttpsSocket(SSLEngine factory, Http2SocketListener listener) {
return new MockHttp2Socket(listener, frontEnd.getHttpsListener(), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy