Package org.kie.server.router.proxy
Class DefaultContainerResolver
- java.lang.Object
-
- org.kie.server.router.proxy.DefaultContainerResolver
-
- All Implemented Interfaces:
ContainerResolver
public class DefaultContainerResolver extends Object implements ContainerResolver
-
-
Field Summary
-
Fields inherited from interface org.kie.server.router.spi.ContainerResolver
NOT_FOUND
-
-
Constructor Summary
Constructors Constructor Description DefaultContainerResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringresolveContainerId(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.StringtoString()
-
-
-
Method Detail
-
resolveContainerId
public String resolveContainerId(io.undertow.server.HttpServerExchange exchange, Map<String,List<ContainerInfo>> containerInfoPerContainer)
Description copied from interface:ContainerResolverBased 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:
resolveContainerIdin interfaceContainerResolver- Parameters:
exchange- exchange representing request to be routedcontainerInfoPerContainer- set of known containers with mapped details- Returns:
- actual container id if found otherwise
NOT_FOUNDshould be returned
-
-