Class DefaultContextPathMatcher
java.lang.Object
org.apache.camel.component.netty.http.DefaultContextPathMatcher
- All Implemented Interfaces:
ContextPathMatcher
- Direct Known Subclasses:
RestContextPathMatcher
A default
ContextPathMatcher
which supports the matchOnUriPrefix option.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getPath()
int
hashCode()
boolean
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
-
Field Details
-
path
-
matchOnUriPrefix
protected final boolean matchOnUriPrefix
-
-
Constructor Details
-
DefaultContextPathMatcher
-
-
Method Details
-
matches
Description copied from interface:ContextPathMatcher
Whether the target context-path matches a regular url.- Specified by:
matches
in interfaceContextPathMatcher
- Parameters:
path
- the context-path from the incoming HTTP request- Returns:
- true to match, false if not.
-
matchesRest
Description copied from interface:ContextPathMatcher
Whether the target context-path matches a REST url.- Specified by:
matchesRest
in interfaceContextPathMatcher
- Parameters:
path
- the context-path from the incoming HTTP requestwildcard
- whether to match strict or by wildcards- Returns:
- true to match, false if not.
-
matchMethod
Description copied from interface:ContextPathMatcher
Matches the given request HTTP method with the configured HTTP method of the consumer- Specified by:
matchMethod
in interfaceContextPathMatcher
- Parameters:
method
- the request HTTP methodrestrict
- the consumer configured HTTP restrict method- Returns:
- true if matched, false otherwise
-
getPath
-
equals
-
hashCode
public int hashCode()
-