Packages

abstract class PathMatcher[L] extends (Path) => Matching[L]

A PathMatcher tries to match a prefix of a given string and returns either a PathMatcher.Matched instance if matched, otherwise PathMatcher.Unmatched.

Self Type
PathMatcher[L]
Source
PathMatcher.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathMatcher
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by EnhancedPathMatcher
  2. by PathMatcher1Ops
  3. by EnhancedPathMatcher
  4. by PathMatcher1Ops
  5. by any2stringadd
  6. by StringFormat
  7. by Ensuring
  8. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PathMatcher()(implicit ev: Tuple[L])

Abstract Value Members

  1. abstract def apply(v1: Path): Matching[L]
    Definition Classes
    Function1

Concrete Value Members

  1. def /[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]

    Alias for slash.

  2. def /: PathMatcher[L]

    Alias for slash.

  3. def andThen[A](g: (Matching[L]) => A): (Path) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  4. def append[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
  5. def compose[A](g: (A) => Path): (A) => Matching[L]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  6. implicit val ev: Tuple[L]
  7. def flatMap[R](f: (T) => Option[R]): PathMatcher1[R]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toPathMatcher1Ops[T] performed by method PathMatcher1Ops in akka.http.scaladsl.server.PathMatcher.This conversion will take place only if L is (T) (L =:= (T)).
    Definition Classes
    PathMatcher1Ops
  8. def flatMap[R](f: (T) => Option[R]): PathMatcher1[R]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toPathMatcher1Ops[T] performed by method PathMatcher1Ops in akka.http.scaladsl.server.PathMatcher.This conversion will take place only if L is (T) (L =:= (T)).
    Definition Classes
    PathMatcher1Ops
  9. def map[R](f: (T) => R): PathMatcher1[R]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toPathMatcher1Ops[T] performed by method PathMatcher1Ops in akka.http.scaladsl.server.PathMatcher.This conversion will take place only if L is (T) (L =:= (T)).
    Definition Classes
    PathMatcher1Ops
  10. def map[R](f: (T) => R): PathMatcher1[R]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toPathMatcher1Ops[T] performed by method PathMatcher1Ops in akka.http.scaladsl.server.PathMatcher.This conversion will take place only if L is (T) (L =:= (T)).
    Definition Classes
    PathMatcher1Ops
  11. def or[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]
  12. def repeat(min: Int, max: Int, separator: PathMatcher0 = PathMatchers.Neutral)(implicit lift: Lift[L, List]): PathMatcher[Out]

    Turns this PathMatcher into one that matches a number of times (with the given separator) and potentially extracts a List of the underlying matcher's extractions.

    Turns this PathMatcher into one that matches a number of times (with the given separator) and potentially extracts a List of the underlying matcher's extractions. If less than min applications of the underlying matcher have succeeded the produced matcher fails, otherwise it matches up to the given max number of applications. Note that it won't fail even if more than max applications could succeed! The "surplus" path elements will simply be left unmatched.

    The result type depends on the type of the underlying matcher:

    If a `matcher` is of typethen `matcher.repeat(...)` is of type
    `PathMatcher0``PathMatcher0`
    `PathMatcher1[T]``PathMatcher1[List[T]`
    `PathMatcher[L :Tuple]``PathMatcher[List[L]]`

  13. def repeat(count: Int, separator: PathMatcher0)(implicit lift: Lift[L, List]): PathMatcher[Out]

    Same as repeat(min = count, max = count, separator = separator).

  14. def repeat(count: Int)(implicit lift: Lift[L, List]): PathMatcher[Out]

    Same as repeat(min = count, max = count).

  15. def slash[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
  16. def slash: PathMatcher[L]
  17. def tflatMap[R](f: (L) => Option[R])(implicit arg0: Tuple[R]): PathMatcher[R]
  18. def tmap[R](f: (L) => R)(implicit arg0: Tuple[R]): PathMatcher[R]
  19. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  20. def transform[R](f: (Matching[L]) => Matching[R])(implicit arg0: Tuple[R]): PathMatcher[R]
  21. def unary_!: PathMatcher0

    Operator alternative to PathMatchers.not

  22. def |[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]

    Alias for or.

  23. def ~[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]

    Alias for append.

Shadowed Implicit Value Members

  1. def ?(implicit lift: Lift[L, Option]): PathMatcher[Out]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toEnhancedPathMatcher[L] performed by method EnhancedPathMatcher in akka.http.scaladsl.server.PathMatcher.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathMatcher: EnhancedPathMatcher[L]).?(lift)
    Definition Classes
    EnhancedPathMatcher
  2. def ?(implicit lift: Lift[L, Option]): PathMatcher[Out]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toEnhancedPathMatcher[L] performed by method EnhancedPathMatcher in akka.http.scaladsl.server.PathMatcher.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathMatcher: EnhancedPathMatcher[L]).?(lift)
    Definition Classes
    EnhancedPathMatcher
  3. def optional(implicit lift: Lift[L, Option]): PathMatcher[Out]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toEnhancedPathMatcher[L] performed by method EnhancedPathMatcher in akka.http.scaladsl.server.PathMatcher.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathMatcher: EnhancedPathMatcher[L]).optional(lift)
    Definition Classes
    EnhancedPathMatcher
  4. def optional(implicit lift: Lift[L, Option]): PathMatcher[Out]
    Implicit
    This member is added by an implicit conversion from PathMatcher[L] toEnhancedPathMatcher[L] performed by method EnhancedPathMatcher in akka.http.scaladsl.server.PathMatcher.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathMatcher: EnhancedPathMatcher[L]).optional(lift)
    Definition Classes
    EnhancedPathMatcher