Class RestConsumerContextPathCustomMatcher
java.lang.Object
org.qubership.integration.platform.engine.camel.components.servlet.RestConsumerContextPathCustomMatcher
Based on
RestConsumerContextPathMatcher-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 methodrequestPath- the incoming request context pathconsumerPaths- the list of consumer context path details- Returns:
- the best matched consumer, or null if none could be determined.
-