AntPatternNamespace
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.
Types
Properties
Provides a list of possible path variables.
Provides a POSIX Extended Regular Expression version of this pattern, suitable for use in Service.addIncludePattern and Service.addExcludePattern
Path variable names whose values are returned unchanged by extractPathVariables instead of being URL-decoded. Intended for values injected by Liberator (such as usernames mapped from %u/%U) that are not URL-encoded. Empty by default.
Functions
Returns a copy of this namespace with rawPathVariables replaced.
Splits the path portion of a subject into its URL-decoded segments, in order. Any trailing ?query is ignored.
Extracts path variables from a matching subject. Values are URL-decoded, except for any listed in rawPathVariables which are returned verbatim. Any trailing ?query is ignored, so a subject that carries query parameters yields the same path variables as the query-less subject.
Extracts the query parameters from the optional trailing ?a=b&c=d portion of a subject.
Creates from and to object-map patterns that can be used with Service.addObjectMap to inject user-specific information into subjects requested by Liberator.