Class DefaultContainerResolver

    • Constructor Detail

      • DefaultContainerResolver

        public DefaultContainerResolver()
    • Method Detail

      • resolveContainerId

        public String resolveContainerId​(io.undertow.server.HttpServerExchange exchange,
                                         Map<String,​List<ContainerInfo>> containerInfoPerContainer)
        Description copied from interface: ContainerResolver
        Based on given request (exchange) find the proper container id to be used to locate the server that the request should be routed to.
        Specified by:
        resolveContainerId in interface ContainerResolver
        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