org.apache.camel.component.netty.http
Interface ContextPathMatcher
- All Known Implementing Classes:
- DefaultContextPathMatcher
public interface ContextPathMatcher
A matcher used for selecting the correct 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.
Method Summary |
boolean |
matches(String target)
Whether the target context-path matches. |
matches
boolean matches(String target)
- Whether the target context-path matches.
- Parameters:
target
- the context-path from the incoming HTTP request
- Returns:
- true to match, false if not.
Apache Camel