public interface ContextPathMatcher
HttpServerChannelHandler
to handle an incoming HttpRequest
when you use multiple routes on the same
port.
As when we do that, we need to multiplex and select the correct consumer route to process the HTTP request.
To do that we need to match on the incoming HTTP request context-path from the request.Modifier and Type | Method and Description |
---|---|
boolean |
matches(String path)
Whether the target context-path matches a regular url.
|
boolean |
matchesRest(String path,
boolean wildcard)
Whether the target context-path matches a REST url.
|
boolean |
matchMethod(String method,
String restrict)
Matches the given request HTTP method with the configured HTTP method of the consumer
|
boolean matches(String path)
path
- the context-path from the incoming HTTP requestboolean matchesRest(String path, boolean wildcard)
path
- the context-path from the incoming HTTP requestwildcard
- whether to match strict or by wildcardsApache Camel