io.finch.route

RouterN

Related Doc: package route

trait RouterN[+A] extends AnyRef

A router that extracts some value of the type A from the given route.

Self Type
RouterN[A]
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RouterN
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(route: Route): Option[(Route, A)]

    Extracts some value of type A from the given route.

    Extracts some value of type A from the given route. In case of success it returns Some tuple of the _rest_ of the route and the fetched _value_. In case of failure it returns None.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def /(that: Router0): RouterN[A]

    Sequentially composes this router with the given that router.

    Sequentially composes this router with the given that router. The resulting router will succeed only if both this and that routers are succeed.

  4. def /[B](that: RouterN[B]): RouterN[/[A, B]]

    Sequentially composes this router with the given that router.

    Sequentially composes this router with the given that router. The resulting router will succeed only if both this and that routers are succeed.

  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def andThen[B](that: RouterN[B]): RouterN[/[A, B]]

    Sequentially composes this router with the given that router.

    Sequentially composes this router with the given that router. The resulting router will succeed only if both this and that routers are succeed.

  7. def andThen(that: ⇒ Router0): RouterN[A]

    Sequentially composes this router with the given that Router0.

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def embedFlatMap[B](fn: (A) ⇒ Option[B]): RouterN[B]

    Flat-maps the router to the given function A => Option[B].

    Flat-maps the router to the given function A => Option[B]. If the given function None the resulting router will also return None.

  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[B](fn: (A) ⇒ RouterN[B]): RouterN[B]

    Flat-maps this router to the given function A => RouterN[B].

  15. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  18. def map[B](fn: (A) ⇒ B): RouterN[B]

    Maps this router to the given function A => B.

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. def orElse[B >: A](that: RouterN[B]): RouterN[B]

    Sequentially composes this router with the given that router.

    Sequentially composes this router with the given that router. The resulting router will succeed if either this or that routers are succeed.

    Router composition via orElse operator happens in a _greedy_ manner: it minimizes the output route tail. Thus, if both of the routers can handle the given route the router is being chosen is that which eats more.

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

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def withFilter(p: (A) ⇒ Boolean): RouterN[A]

Inherited from AnyRef

Inherited from Any

Ungrouped