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
- Alphabetic
- By Inheritance
- PathMatcher
- Function1
- AnyRef
- Any
- by EnhancedPathMatcher
- by PathMatcher1Ops
- by EnhancedPathMatcher
- by PathMatcher1Ops
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toany2stringadd[PathMatcher[L]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (PathMatcher[L], B)
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toArrowAssoc[PathMatcher[L]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- def /[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
Alias for slash.
- def /: PathMatcher[L]
Alias for slash.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (Matching[L]) => A): (Path) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def append[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def compose[A](g: (A) => Path): (A) => Matching[L]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def ensuring(cond: (PathMatcher[L]) => Boolean, msg: => Any): PathMatcher[L]
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toEnsuring[PathMatcher[L]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (PathMatcher[L]) => Boolean): PathMatcher[L]
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toEnsuring[PathMatcher[L]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): PathMatcher[L]
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toEnsuring[PathMatcher[L]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): PathMatcher[L]
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toEnsuring[PathMatcher[L]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit val ev: Tuple[L]
- 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
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def or[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]
- 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 aList
of the underlying matcher's extractions.Turns this
PathMatcher
into one that matches a number of times (with the given separator) and potentially extracts aList
of the underlying matcher's extractions. If less thanmin
applications of the underlying matcher have succeeded the produced matcher fails, otherwise it matches up to the givenmax
number of applications. Note that it won't fail even if more thanmax
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 type then `matcher.repeat(...)` is of type `PathMatcher0` `PathMatcher0` `PathMatcher1[T]` `PathMatcher1[List[T]` `PathMatcher[L :Tuple]` `PathMatcher[List[L]]` - def repeat(count: Int, separator: PathMatcher0)(implicit lift: Lift[L, List]): PathMatcher[Out]
Same as
repeat(min = count, max = count, separator = separator)
. - def repeat(count: Int)(implicit lift: Lift[L, List]): PathMatcher[Out]
Same as
repeat(min = count, max = count)
. - def slash[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
- def slash: PathMatcher[L]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tflatMap[R](f: (L) => Option[R])(implicit arg0: Tuple[R]): PathMatcher[R]
- def tmap[R](f: (L) => R)(implicit arg0: Tuple[R]): PathMatcher[R]
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- def transform[R](f: (Matching[L]) => Matching[R])(implicit arg0: Tuple[R]): PathMatcher[R]
- def unary_!: PathMatcher0
Operator alternative to PathMatchers.not
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def |[R >: L](other: PathMatcher[_ <: R])(implicit arg0: Tuple[R]): PathMatcher[R]
Alias for or.
- def ~[R](other: PathMatcher[R])(implicit join: Join[L, R]): PathMatcher[Out]
Alias for append.
Shadowed Implicit Value Members
- 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
- 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
- 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
- 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
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toStringFormat[PathMatcher[L]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (PathMatcher[L], B)
- Implicit
- This member is added by an implicit conversion from PathMatcher[L] toArrowAssoc[PathMatcher[L]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if L is (Nothing) (L =:= (Nothing)).
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.