fm.http.server

SingleHandlerRequestRouter

final case class SingleHandlerRequestRouter(handler: (Request) ⇒ Future[Response]) extends RequestRouter with Product with Serializable

A RequestRouter that always returns the same handler which should be useful for 404 pages

Linear Supertypes
Serializable, Serializable, Product, Equals, RequestRouter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SingleHandlerRequestRouter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RequestRouter
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SingleHandlerRequestRouter(handler: (Request) ⇒ Future[Response])

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

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

    Definition Classes
    Any
  6. def afterShutdown(): Unit

    Called once web server shutdown is completed -- Should be idempotent

    Called once web server shutdown is completed -- Should be idempotent

    Definition Classes
    RequestRouter
  7. def afterStartup(): Unit

    Called after the web server is running but before ping is enabled -- Should be idempotent

    Called after the web server is running but before ping is enabled -- Should be idempotent

    Definition Classes
    RequestRouter
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def beforeShutdown(): Unit

    Called when web server shutdown is requested but before actually shutting down -- Should be idempotent

    Called when web server shutdown is requested but before actually shutting down -- Should be idempotent

    Definition Classes
    RequestRouter
  10. def beforeStartup(): Unit

    Called before the web server starts up -- Should be idempotent

    Called before the web server starts up -- Should be idempotent

    Definition Classes
    RequestRouter
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. val handler: (Request) ⇒ Future[Response]

  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. def lookup(request: Request): Option[(Request) ⇒ Future[Response]]

    Given a request lookup a RequestHandler that can satisfy it

    Given a request lookup a RequestHandler that can satisfy it

    Definition Classes
    SingleHandlerRequestRouterRequestRouter
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  21. final def orElse(that: RequestRouter): RequestRouter

    If this router doesn't match the request then try that router

    If this router doesn't match the request then try that router

    Definition Classes
    RequestRouter
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def withDefaultHandler(handler: (Request) ⇒ Future[Response]): RequestRouter

    If this request router does not match a request then send the request to the specified default handler

    If this request router does not match a request then send the request to the specified default handler

    Definition Classes
    RequestRouter
  27. final def withErrorHandler(handler: (Request) ⇒ Future[Response])(implicit ec: ExecutionContext): RequestRouter

    If a RequestHandler throws an Exception then run this handler.

    If a RequestHandler throws an Exception then run this handler. Useful for showing an Error Page when a request fails

    Definition Classes
    RequestRouter
  28. final def withFilter(filter: Option[RequestFilter]): RequestRouter

    Run any RequestHandlers returned by this RequestRouter through an optional RequestFilter

    Run any RequestHandlers returned by this RequestRouter through an optional RequestFilter

    Definition Classes
    RequestRouter
  29. final def withFilter(filter: RequestFilter): RequestRouter

    Run any RequestHandlers returned by this RequestRouter through a RequestFilter

    Run any RequestHandlers returned by this RequestRouter through a RequestFilter

    Definition Classes
    RequestRouter
  30. final def withFilters(filters: TraversableOnce[RequestFilter]): RequestRouter

    Run any RequestHandlers returned by this RequestRouter through a sequence of RequestFilter

    Run any RequestHandlers returned by this RequestRouter through a sequence of RequestFilter

    Definition Classes
    RequestRouter

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RequestRouter

Inherited from AnyRef

Inherited from Any

Ungrouped