All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.littleshoot.proxy.ChainedProxyManager Maven / Gradle / Ivy

Go to download

LittleProxy is a high performance HTTP proxy written in Java and using the Netty networking framework.

There is a newer version: 1.1.2
Show newest version
package org.littleshoot.proxy;

import io.netty.handler.codec.http.HttpRequest;

import java.util.Queue;

/**
 * 

* Interface for classes that manage chained proxies. *

*/ public interface ChainedProxyManager { /** *

* Based on the given httpRequest, add any {@link ChainedProxy}s to the list * that should be used to process the request. The upstream proxy will * attempt to connect to each of these in the order that they appear until * it successfully connects to one. *

* *

* To allow the proxy to fall back to a direct connection, you can add * {@link ChainedProxyAdapter#FALLBACK_TO_DIRECT_CONNECTION} to the end of * the list. *

* * @param httpRequest * @param chainedProxies */ void lookupChainedProxies(HttpRequest httpRequest, Queue chainedProxies); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy