
org.webpieces.webserver.test.http2.directfast.MockFrontendSocket 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 java.net.InetSocketAddress;
import org.webpieces.frontend2.api.FrontendSocket;
import org.webpieces.frontend2.impl.ProtocolType;
import org.webpieces.nio.api.channels.ChannelSession;
public class MockFrontendSocket implements FrontendSocket {
private boolean isHttps;
private ProxyClose proxyClose;
public MockFrontendSocket(boolean isHttps, ProxyClose proxyClose) {
this.isHttps = isHttps;
this.proxyClose = proxyClose;
}
@Override
public void close(String reason) {
proxyClose.socketFarEndClosed();
}
@Override
public ChannelSession getSession() {
// TODO Auto-generated method stub
return null;
}
@Override
public ProtocolType getProtocol() {
// TODO Auto-generated method stub
return null;
}
@Override
public boolean isForServingHttpsPages() {
return isHttps;
}
@Override
public boolean isBackendSocket() {
// TODO Auto-generated method stub
return false;
}
@Override
public InetSocketAddress getServerLocalBoundAddress() {
// TODO Auto-generated method stub
return null;
}
@Override
public InetSocketAddress getLocalAddress() {
// TODO Auto-generated method stub
return null;
}
@Override
public InetSocketAddress getRemoteAddress() {
// TODO Auto-generated method stub
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy