Package org.littleshoot.proxy
Interface ChainedProxyManager
-
public interface ChainedProxyManagerInterface for classes that manage chained proxies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlookupChainedProxies(HttpRequest httpRequest, Queue<ChainedProxy> chainedProxies, ClientDetails clientDetails)Based on the given httpRequest, add anyChainedProxys to the list that should be used to process the request.
-
-
-
Method Detail
-
lookupChainedProxies
void lookupChainedProxies(HttpRequest httpRequest, Queue<ChainedProxy> chainedProxies, ClientDetails clientDetails)
Based on the given httpRequest, add any
ChainedProxys to the list that should be used to process the request. The downstream 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
ChainedProxyAdapter.FALLBACK_TO_DIRECT_CONNECTIONto the end of the list.To keep the proxy from attempting any connection, leave the list blank. This will cause the proxy to return a 502 response.
-
-