Class HttpMetaServiceDescriptor.PathMatcher
java.lang.Object
io.inverno.mod.discovery.http.meta.HttpMetaServiceDescriptor.PathMatcher
- Enclosing class:
HttpMetaServiceDescriptor
Describes a path matcher.
- Since:
- 1.12
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorDescriptionPathMatcher
(String path, boolean matchTrailingSlash) Creates a path matcher. -
Method Summary
-
Constructor Details
-
PathMatcher
Creates a path matcher.
- Parameters:
path
- a static path or a path patternmatchTrailingSlash
- true to match trailing slash, false otherwise
-
-
Method Details
-
getPath
Returns the path.
- Returns:
- the path
-
isMatchTrailingSlash
public boolean isMatchTrailingSlash()Determines whether the trailing slash must be matched.
- Returns:
- true if the trailing slash is matched, false otherwise
-
equals
-
hashCode
public int hashCode()
-