akka.http.scaladsl.server

PathMatcher

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
(Path) ⇒ Matching[L], AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PathMatcher
  2. Function1
  3. AnyRef
  4. Any
Implicitly
  1. by PathMatcher1Ops
  2. by EnhancedPathMatcher
  3. by EnhancedPathMatcher
  4. by PathMatcher1Ops
  5. by any2stringadd
  6. by any2stringfmt
  7. by any2ArrowAssoc
  8. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (PathMatcher[L], B)

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to ArrowAssoc[PathMatcher[L]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. def /[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]

  7. def /: PathMatcher[L]

  8. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  10. def andThen[A](g: (Matching[L]) ⇒ A): (Path) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compose[A](g: (A) ⇒ Path): (A) ⇒ Matching[L]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  14. def ensuring(cond: (PathMatcher[L]) ⇒ Boolean, msg: ⇒ Any): PathMatcher[L]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to Ensuring[PathMatcher[L]] performed by method any2Ensuring in scala.Predef. This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
    Definition Classes
    Ensuring
  15. def ensuring(cond: (PathMatcher[L]) ⇒ Boolean): PathMatcher[L]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to Ensuring[PathMatcher[L]] performed by method any2Ensuring in scala.Predef. This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): PathMatcher[L]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to Ensuring[PathMatcher[L]] performed by method any2Ensuring in scala.Predef. This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): PathMatcher[L]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to Ensuring[PathMatcher[L]] performed by method any2Ensuring in scala.Predef. This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  20. implicit val ev: Tuple[L]

  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def flatMap[R](f: (T) ⇒ Option[R]): PathMatcher1[R]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to PathMatcher1Ops[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
  23. def flatMap[R](f: (T) ⇒ Option[R]): PathMatcher1[R]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to PathMatcher1Ops[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
  24. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def map[R](f: (T) ⇒ R): PathMatcher1[R]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to PathMatcher1Ops[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
  29. def map[R](f: (T) ⇒ R): PathMatcher1[R]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to PathMatcher1Ops[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
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  33. 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]]``

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

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

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

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

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def tflatMap[R](f: (L) ⇒ Option[R])(implicit arg0: Tuple[R]): PathMatcher[R]

  38. def tmap[R](f: (L) ⇒ R)(implicit arg0: Tuple[R]): PathMatcher[R]

  39. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  40. def transform[R](f: (Matching[L]) ⇒ Matching[R])(implicit arg0: Tuple[R]): PathMatcher[R]

  41. def unary_!(): PathMatcher0

  42. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def |[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]

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

  47. def [B](y: B): (PathMatcher[L], B)

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to ArrowAssoc[PathMatcher[L]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def ?(implicit lift: Lift[L, Option]): PathMatcher[Out]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to EnhancedPathMatcher[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 information
    This member is added by an implicit conversion from PathMatcher[L] to EnhancedPathMatcher[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. val self: Any

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to StringAdd performed by method any2stringadd in scala.Predef.
    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: StringAdd).self
    Definition Classes
    StringAdd
  4. val self: Any

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to StringFormat performed by method any2stringfmt in scala.Predef.
    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: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: PathMatcher[L]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to ArrowAssoc[PathMatcher[L]] performed by method any2ArrowAssoc in scala.Predef.
    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: ArrowAssoc[PathMatcher[L]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: PathMatcher[L]

    Implicit information
    This member is added by an implicit conversion from PathMatcher[L] to Ensuring[PathMatcher[L]] performed by method any2Ensuring in scala.Predef. This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
    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: Ensuring[PathMatcher[L]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from (Path) ⇒ Matching[L]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion PathMatcher1Ops from PathMatcher[L] to PathMatcher1Ops[T]

Inherited by implicit conversion EnhancedPathMatcher from PathMatcher[L] to EnhancedPathMatcher[L]

Inherited by implicit conversion EnhancedPathMatcher from PathMatcher[L] to EnhancedPathMatcher[L]

Inherited by implicit conversion PathMatcher1Ops from PathMatcher[L] to PathMatcher1Ops[T]

Inherited by implicit conversion any2stringadd from PathMatcher[L] to StringAdd

Inherited by implicit conversion any2stringfmt from PathMatcher[L] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from PathMatcher[L] to ArrowAssoc[PathMatcher[L]]

Inherited by implicit conversion any2Ensuring from PathMatcher[L] to Ensuring[PathMatcher[L]]

Ungrouped