object PathMatcher extends ImplicitPathMatcherConstruction
- Grouped
- Alphabetic
- By Inheritance
- PathMatcher
- ImplicitPathMatcherConstruction
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Path matcher implicits
- implicit def _regex2PathMatcher(regex: Regex): PathMatcher1[String]
Creates a PathMatcher that consumes (a prefix of) the first path segment if the path begins with a segment (a prefix of) which matches the given regex.
Creates a PathMatcher that consumes (a prefix of) the first path segment if the path begins with a segment (a prefix of) which matches the given regex. Extracts either the complete match (if the regex doesn't contain a capture group) or the capture group (if the regex contains exactly one). If the regex contains more than one capture group the method throws an IllegalArgumentException.
- Definition Classes
- ImplicitPathMatcherConstruction
- implicit def _segmentStringToPathMatcher(segment: String): PathMatcher0
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment).
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment).
- Definition Classes
- ImplicitPathMatcherConstruction
- implicit def _stringExtractionPair2PathMatcher[T](tuple: (String, T)): PathMatcher1[T]
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment) and extracts a given value.
Creates a PathMatcher that consumes (a prefix of) the first path segment (if the path begins with a segment) and extracts a given value.
- Definition Classes
- ImplicitPathMatcherConstruction
- implicit def _stringNameOptionReceptacle2PathMatcher(nr: NameOptionReceptacle[String]): PathMatcher0
- Definition Classes
- ImplicitPathMatcherConstruction
- implicit def _valueMap2PathMatcher[T](valueMap: Map[String, T]): PathMatcher1[T]
Creates a PathMatcher from the given Map of path segments (prefixes) to extracted values.
Creates a PathMatcher from the given Map of path segments (prefixes) to extracted values. If the unmatched path starts with a segment having one of the maps keys as a prefix the matcher consumes this path segment (prefix) and extracts the corresponding map value. For keys sharing a common prefix the longest matching prefix is selected.
- Definition Classes
- ImplicitPathMatcherConstruction
Ungrouped
- implicit class EnhancedPathMatcher[L] extends AnyRef
- sealed trait Lift[L, M[+_]] extends AnyRef
- trait LowLevelLiftImplicits extends AnyRef
- case class Matched[L](pathRest: Path, extractions: L)(implicit evidence$10: Tuple[L]) extends Matching[L] with Product with Serializable
- sealed abstract class Matching[+L] extends AnyRef
- implicit class PathMatcher1Ops[T] extends AnyRef
- def apply[L](magnet: PathMatcher[L]): PathMatcher[L]
Provoke implicit conversions to PathMatcher to be applied
- def apply[L](prefix: Path, extractions: L)(implicit arg0: Tuple[L]): PathMatcher[L]
Creates a PathMatcher that matches and consumes the given path prefix and extracts the given list of extractions.
Creates a PathMatcher that matches and consumes the given path prefix and extracts the given list of extractions. If the given prefix is empty the returned PathMatcher matches always and consumes nothing.
- def provide[L](extractions: L)(implicit arg0: Tuple[L]): PathMatcher[L]
Creates a PathMatcher that always matches, consumes nothing and extracts the given Tuple of values.
- object Lift extends LowLevelLiftImplicits
- object Matched extends Serializable
- case object Unmatched extends Matching[Nothing] with Product with Serializable