Package org.keycloak.common.util
Class PathMatcher<P>
java.lang.Object
org.keycloak.common.util.PathMatcher<P>
- Author:
- Pedro Igor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildUriFromTemplate(String template, String targetUri, boolean onlyFirstParam) booleanendsWithWildcard(String expectedUri) protected abstract Stringprotected abstract Collection<P>getPaths()protected StringnormalizeUri(String uri) protected PresolvePathConfig(P entry, String path) static StringvalidateTemplate(String uri) Validates that the given URI is a well-formed path template.
-
Constructor Details
-
PathMatcher
public PathMatcher()
-
-
Method Details
-
matches
-
getPath
-
getPaths
-
buildUriFromTemplate
-
endsWithWildcard
-
validateTemplate
Validates that the given URI is a well-formed path template.- Returns:
- an error message if the URI is invalid, or
nullif it is valid
-
resolvePathConfig
-
normalizeUri
-