Class HttpMetaServiceDescriptor.PathMatcher

java.lang.Object
io.inverno.mod.discovery.http.meta.HttpMetaServiceDescriptor.PathMatcher
Enclosing class:
HttpMetaServiceDescriptor

public static class HttpMetaServiceDescriptor.PathMatcher extends Object

Describes a path matcher.

Since:
1.12
Author:
Jeremy Kuhn
  • Constructor Details

    • PathMatcher

      public PathMatcher(String path, boolean matchTrailingSlash)

      Creates a path matcher.

      Parameters:
      path - a static path or a path pattern
      matchTrailingSlash - true to match trailing slash, false otherwise
  • Method Details

    • getPath

      public String 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object