Packages

object PathMatcher extends ImplicitPathMatcherConstruction

Source
PathMatcher.scala
Content Hierarchy
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. PathMatcher
  2. ImplicitPathMatcherConstruction
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Path matcher implicits

  1. 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
  2. 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
  3. 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
  4. implicit def _stringNameOptionReceptacle2PathMatcher(nr: NameOptionReceptacle[String]): PathMatcher0

  5. 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

  1. implicit class EnhancedPathMatcher[L] extends AnyRef
  2. sealed trait Lift[L, M[+_]] extends AnyRef
  3. trait LowLevelLiftImplicits extends AnyRef
  4. case class Matched[L](pathRest: Path, extractions: L)(implicit evidence$10: Tuple[L]) extends Matching[L] with Product with Serializable
  5. sealed abstract class Matching[+L] extends AnyRef
  6. implicit class PathMatcher1Ops[T] extends AnyRef
  1. def apply[L](magnet: PathMatcher[L]): PathMatcher[L]

    Provoke implicit conversions to PathMatcher to be applied

  2. 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.

  3. 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.

  4. object Lift extends LowLevelLiftImplicits
  5. object Matched extends Serializable
  6. case object Unmatched extends Matching[Nothing] with Product with Serializable