abstract class Directive[L] extends AnyRef
- Alphabetic
- By Inheritance
- Directive
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def tapply(f: (L) => Route): Route
Calls the inner route with a tuple of extracted values of type
L.Calls the inner route with a tuple of extracted values of type
L.tapplyis short for "tuple-apply". Usually, you will use the regularapplymethod instead, which is added by an implicit conversion (seeDirective.addDirectiveApply).
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def &(magnet: ConjunctionMagnet[L]): Out
Joins two directives into one which extracts the concatenation of its base directive extractions.
Joins two directives into one which extracts the concatenation of its base directive extractions. NOTE: Extraction joining is an O(N) operation with N being the number of extractions on the right-side.
Alias for and.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def and(magnet: ConjunctionMagnet[L]): Out
Joins two directives into one which extracts the concatenation of its base directive extractions.
Joins two directives into one which extracts the concatenation of its base directive extractions. NOTE: Extraction joining is an O(N) operation with N being the number of extractions on the right-side.
- def as[A](constructor: ConstructFromTuple[L, A]): Directive1[A]
Converts this directive into one which, instead of a tuple of type
L, creates an instance of typeA(which is usually a case class). - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit val ev: Tuple[L]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def or[R >: L](that: Directive[R]): Directive[R]
Joins two directives into one which runs the second directive if the first one rejects.
- def recover[R >: L](recovery: (Seq[Rejection]) => Directive[R])(implicit arg0: Tuple[R]): Directive[R]
Creates a new directive that is able to recover from rejections that were produced by
thisDirective **before the inner route was applied**. - def recoverPF[R >: L](recovery: PartialFunction[Seq[Rejection], Directive[R]])(implicit arg0: Tuple[R]): Directive[R]
Variant of
recoverthat only recovers from rejections handled by the given PartialFunction. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tcollect[R](pf: PartialFunction[L, R], rejections: Rejection*)(implicit tupler: Tupler[R]): Directive[Out]
If the given scala.PartialFunction is defined for the input, maps this directive with the given function, which can produce either a tuple or any other value.
If the given scala.PartialFunction is defined for the input, maps this directive with the given function, which can produce either a tuple or any other value. If it is not defined however, the returned directive will reject with the given rejections.
- def tfilter(predicate: (L) => Boolean, rejections: Rejection*): Directive[L]
Creates a new directive of the same type, which passes if the given predicate matches the current extractions or rejects with the given rejections.
- def tflatMap[R](f: (L) => Directive[R])(implicit arg0: Tuple[R]): Directive[R]
Flatmaps this directive using the given function.
- def tmap[R](f: (L) => R)(implicit tupler: Tupler[R]): Directive[Out]
Maps over this directive using the given function, which can produce either a tuple or any other value (which will then we wrapped into a scala.Tuple1).
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trequire(predicate: (L) => Boolean, rejections: Rejection*): Directive0
Creates a new Directive0, which passes if the given predicate matches the current extractions or rejects with the given rejections.
- 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](that: Directive[R]): Directive[R]
Joins two directives into one which runs the second directive if the first one rejects.
Joins two directives into one which runs the second directive if the first one rejects.
Alias for or.