Package org.microproxy
Interface ChainedProxyManager
- All Known Implementing Classes:
ScriptedProxy,UpstreamProxyManager
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Chooses upstream proxies for each request.
-
Method Summary
Modifier and TypeMethodDescriptionvoidlookupChainedProxies(HttpRequest httpRequest, Queue<ChainedProxy> chainedProxies, ClientDetails clientDetails) Adds the proxies to try, in order, tochainedProxies.
-
Method Details
-
lookupChainedProxies
void lookupChainedProxies(HttpRequest httpRequest, Queue<ChainedProxy> chainedProxies, ClientDetails clientDetails) Adds the proxies to try, in order, tochainedProxies. Leave the queue empty to reject the request with502, or addChainedProxyAdapter.FALLBACK_TO_DIRECT_CONNECTIONto connect directly.- Parameters:
httpRequest- the request headchainedProxies- the queue to populate with proxies to try, in orderclientDetails- the client address and authentication details
-