Class RestConsumerContextPathCustomMatcher

java.lang.Object
org.qubership.integration.platform.engine.camel.components.servlet.RestConsumerContextPathCustomMatcher

public class RestConsumerContextPathCustomMatcher extends Object
Based on RestConsumerContextPathMatcher
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.camel.support.RestConsumerContextPathMatcher.ConsumerPath<org.apache.camel.http.common.HttpConsumer>
    matchBestPath(String requestMethod, String requestPath, List<org.apache.camel.support.RestConsumerContextPathMatcher.ConsumerPath<org.apache.camel.http.common.HttpConsumer>> consumerPaths)
    Finds the best matching of the list of consumer paths that should service the incoming request.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestConsumerContextPathCustomMatcher

      public RestConsumerContextPathCustomMatcher()
  • Method Details

    • matchBestPath

      public static org.apache.camel.support.RestConsumerContextPathMatcher.ConsumerPath<org.apache.camel.http.common.HttpConsumer> matchBestPath(String requestMethod, String requestPath, List<org.apache.camel.support.RestConsumerContextPathMatcher.ConsumerPath<org.apache.camel.http.common.HttpConsumer>> consumerPaths)
      Finds the best matching of the list of consumer paths that should service the incoming request.
      Parameters:
      requestMethod - the incoming request HTTP method
      requestPath - the incoming request context path
      consumerPaths - the list of consumer context path details
      Returns:
      the best matched consumer, or null if none could be determined.