org.littleshoot.proxy.ActivityTrackerAdapter 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.
The newest version!
package org.littleshoot.proxy;
import io.netty.handler.codec.http.HttpRequest;
import io.netty.handler.codec.http.HttpResponse;
import javax.net.ssl.SSLSession;
import java.net.InetSocketAddress;
/**
* Adapter of {@link ActivityTracker} interface that provides default no-op
* implementations of all methods.
*/
public class ActivityTrackerAdapter implements ActivityTracker {
@Override
public void bytesReceivedFromClient(FlowContext flowContext,
int numberOfBytes) {
}
@Override
public void requestReceivedFromClient(FlowContext flowContext,
HttpRequest httpRequest) {
}
@Override
public void bytesSentToServer(FullFlowContext flowContext, int numberOfBytes) {
}
@Override
public void requestSentToServer(FullFlowContext flowContext,
HttpRequest httpRequest) {
}
@Override
public void bytesReceivedFromServer(FullFlowContext flowContext,
int numberOfBytes) {
}
@Override
public void responseReceivedFromServer(FullFlowContext flowContext,
HttpResponse httpResponse) {
}
@Override
public void bytesSentToClient(FlowContext flowContext,
int numberOfBytes) {
}
@Override
public void responseSentToClient(FlowContext flowContext,
HttpResponse httpResponse) {
}
@Override
public void clientConnected(InetSocketAddress clientAddress) {
}
@Override
public void clientSSLHandshakeSucceeded(InetSocketAddress clientAddress,
SSLSession sslSession) {
}
@Override
public void clientDisconnected(InetSocketAddress clientAddress,
SSLSession sslSession) {
}
}