AntPatternNamespace

class AntPatternNamespace(pattern: String) : Namespace(source)

An implementation of Namespace that matches subjects based on Ant style path patterns.

This supports the majority of the rules laid out in Spring's AntPathMatcher, but with the exception that regex path variables are not supported.

Simple path variables such as {client} are supported, and can be accessed via extractPathVariables.

Constructors

Link copied to clipboard
constructor(pattern: String)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class ObjectMap(val fromPattern: String, val toPattern: String)

Properties

Link copied to clipboard

Indicates whether this pattern only matches one exact path (i.e. no use of ?, *, ** or path variables).

Link copied to clipboard

Provides a list of possible path variables.

Link copied to clipboard
Link copied to clipboard

Provides a POSIX Extended Regular Expression version of this pattern, suitable for use in Service.addIncludePattern and Service.addExcludePattern

Functions

Link copied to clipboard
Link copied to clipboard

Creates from and to object-map patterns that can be used with Service.addObjectMap to inject user-specific information into subjects requested by Liberator.

Link copied to clipboard
open override fun match(subject: String): Boolean
Link copied to clipboard
open override fun toString(): String