Interface ContainerResolver

  • All Known Implementing Classes:
    DefaultContainerResolver

    public interface ContainerResolver
    Responsible for finding the proper container to deal with request
    • Method Detail

      • resolveContainerId

        String resolveContainerId​(io.undertow.server.HttpServerExchange exchange,
                                  Map<String,​List<ContainerInfo>> containerInfoPerContainer)
        Based on given request (exchange) find the proper container id to be used to locate the server that the request should be routed to.
        Parameters:
        exchange - exchange representing request to be routed
        containerInfoPerContainer - set of known containers with mapped details
        Returns:
        actual container id if found otherwise NOT_FOUND should be returned