Class

fm.http.server

DefaultRequestRouterWithExecutionContext

Related Doc: package server

Permalink

abstract class DefaultRequestRouterWithExecutionContext extends RequestRouterBase with RequestRouterAndHandler

This provides a base for both a RequestRouter and RequestHandler that is implemented by using a PartialFunction.

Note: If you do not need a PartialFunction that takes an Execution context then see the DefaultRequestRouter version of this.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultRequestRouterWithExecutionContext
  2. RequestRouterAndHandler
  3. RequestHandler
  4. RequestRouterBase
  5. RequestRouter
  6. WithFilter
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultRequestRouterWithExecutionContext()

    Permalink

Abstract Value Members

  1. abstract val handler: PartialFunction[Request, (ExecutionContext) ⇒ Future[Response]]

    Permalink
    Attributes
    protected

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def afterShutdown(): Unit

    Permalink

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

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

    Definition Classes
    RequestRouterBaseRequestRouter
  5. def afterShutdownImpl(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RequestRouterBase
  6. final def afterStartup(): Unit

    Permalink

    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
    RequestRouterBaseRequestRouter
  7. def afterStartupImpl(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RequestRouterBase
  8. final def apply(request: Request)(implicit executor: ExecutionContext): Future[Response]

    Permalink
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. final def beforeShutdown(): Unit

    Permalink

    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
    RequestRouterBaseRequestRouter
  11. def beforeShutdownImpl(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RequestRouterBase
  12. final def beforeStartup(): Unit

    Permalink

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

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

    Definition Classes
    RequestRouterBaseRequestRouter
  13. def beforeStartupImpl(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    RequestRouterBase
  14. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def lookup(request: Request): Option[RequestHandler]

    Permalink

    Given a request lookup a RequestHandler that can satisfy it

    Given a request lookup a RequestHandler that can satisfy it

    Definition Classes
    DefaultRequestRouterWithExecutionContextRequestRouter
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  24. final def orElse(that: RequestRouter): RequestRouter

    Permalink

    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
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def withDefaultHandler(handler: RequestHandler): RequestRouter

    Permalink

    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
  31. final def withDefaultHandler(handler: (Request, ExecutionContext) ⇒ Future[Response]): RequestRouter

    Permalink

    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
  32. final def withDefaultHandler(handler: (Request) ⇒ Future[Response]): RequestRouter

    Permalink

    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

    This is for backwards compatibility from when RequestHandler was a Function1[Request, Future[Response]]

    Definition Classes
    RequestRouter
  33. final def withErrorHandler(handler: ErrorRequestHandler): RequestRouter

    Permalink

    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
  34. final def withErrorHandler(handler: (Request, Throwable, ExecutionContext) ⇒ Future[Response]): RequestRouter

    Permalink

    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
  35. final def withErrorHandler(handler: (Request, Throwable) ⇒ Future[Response]): RequestRouter

    Permalink

    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

    This is for backwards compatibility from when ErrorRequestHandler was a Function2[Requestm, Throwable, Future[Response]]

    Definition Classes
    RequestRouter
  36. def withFilter(filter: RequestFilter): RequestRouterAndHandler

    Permalink

    Run any RequestHandlers returned by this RequestRouter through a RequestFilter

    Run any RequestHandlers returned by this RequestRouter through a RequestFilter

    Definition Classes
    RequestRouterAndHandlerRequestHandlerRequestRouterWithFilter
  37. final def withFilter(filter: Option[RequestFilter]): RequestRouterAndHandler

    Permalink

    Run any RequestHandlers returned by this RequestRouter through an optional RequestFilter

    Run any RequestHandlers returned by this RequestRouter through an optional RequestFilter

    Definition Classes
    WithFilter
  38. final def withFilters(filters: TraversableOnce[RequestFilter]): RequestRouterAndHandler

    Permalink

    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
    WithFilter

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from RequestRouterAndHandler

Inherited from RequestHandler

Inherited from RequestRouterBase

Inherited from RequestRouter

Inherited from AnyRef

Inherited from Any

Ungrouped