org.littleshoot.proxy.ChainedProxyAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of littleproxy Show documentation
Show all versions of littleproxy Show documentation
LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.
package org.littleshoot.proxy;
import io.netty.handler.codec.http.HttpObject;
import java.net.InetSocketAddress;
import javax.net.ssl.SSLEngine;
/**
* Convenience base class for implementations of {@link ChainedProxy}.
*/
public class ChainedProxyAdapter implements ChainedProxy {
/**
* {@link ChainedProxy} that simply has the upstream proxy make a direct
* connection to the server.
*/
public static ChainedProxy FALLBACK_TO_DIRECT_CONNECTION = new ChainedProxyAdapter();
@Override
public InetSocketAddress getChainedProxyAddress() {
return null;
}
@Override
public InetSocketAddress getLocalAddress() {
return null;
}
@Override
public TransportProtocol getTransportProtocol() {
return TransportProtocol.TCP;
}
@Override
public boolean requiresEncryption() {
return false;
}
@Override
public SSLEngine newSslEngine() {
return null;
}
@Override
public void filterRequest(HttpObject httpObject) {
}
@Override
public void connectionSucceeded() {
}
@Override
public void connectionFailed(Throwable cause) {
}
@Override
public void disconnected() {
}
}