Class HandlerUtils


  • public class HandlerUtils
    extends Object
    • Constructor Detail

      • HandlerUtils

        public HandlerUtils()
    • Method Detail

      • findServiceEntry

        public static String[] findServiceEntry​(String searchKey,
                                                Map<String,​String> mapping)
        Looks up the appropriate serviceId for a given requestPath taken directly from exchange. Returns null if the path does not map to a configured service, otherwise, an array will be returned with the first element the path prefix and the second element the serviceId.
        Parameters:
        searchKey - search key
        mapping - a map of prefix and service id
        Returns:
        pathPrefix and serviceId in an array that is found
      • normalisePath

        public static String normalisePath​(String requestPath)
      • toInternalKey

        public static String toInternalKey​(String key)