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.

@FunctionalInterface public interface ChainedProxyManager
Chooses upstream proxies for each request.
  • Method Details

    • lookupChainedProxies

      void lookupChainedProxies(HttpRequest httpRequest, Queue<ChainedProxy> chainedProxies, ClientDetails clientDetails)
      Adds the proxies to try, in order, to chainedProxies. Leave the queue empty to reject the request with 502, or add ChainedProxyAdapter.FALLBACK_TO_DIRECT_CONNECTION to connect directly.
      Parameters:
      httpRequest - the request head
      chainedProxies - the queue to populate with proxies to try, in order
      clientDetails - the client address and authentication details