Interface ProxyClient

  • All Known Implementing Classes:
    LoadBalancingProxyClient, SimpleProxyClientProvider

    public interface ProxyClient
    A client that provides connections for the proxy handler. The provided connection is valid for the duration of the current exchange. Note that implementation are required to manage the lifecycle of these connections themselves, generally by registering callbacks on the exchange.
    Stuart Douglas
    • Method Detail

      • findTarget

        ProxyClient.ProxyTarget findTarget​(HttpServerExchange exchange)
        Finds a proxy target for this request, returning null if none can be found. If this method returns null it means that there is no backend available to handle this request, and it should proceed as normal.
        exchange - The exchange
        The proxy target