Class PathMatcher<P>

java.lang.Object
org.keycloak.common.util.PathMatcher<P>

public abstract class PathMatcher<P> extends Object
Author:
Pedro Igor
  • Constructor Details

    • PathMatcher

      public PathMatcher()
  • Method Details

    • matches

      public P matches(String targetUri)
    • getPath

      protected abstract String getPath(P entry)
    • getPaths

      protected abstract Collection<P> getPaths()
    • buildUriFromTemplate

      protected String buildUriFromTemplate(String template, String targetUri, boolean onlyFirstParam)
    • endsWithWildcard

      public boolean endsWithWildcard(String expectedUri)
    • validateTemplate

      public static String validateTemplate(String uri)
      Validates that the given URI is a well-formed path template.
      Returns:
      an error message if the URI is invalid, or null if it is valid
    • resolvePathConfig

      protected P resolvePathConfig(P entry, String path)
    • normalizeUri

      protected String normalizeUri(String uri)