Trait/Object

fm.http.server

RequestRouter

Related Docs: object RequestRouter | package server

Permalink

trait RequestRouter extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestRouter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def lookup(request: Request): Option[RequestHandler]

    Permalink

    Given a request lookup a RequestHandler that can satisfy it

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

    Permalink

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

  5. def afterStartup(): Unit

    Permalink

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

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def beforeShutdown(): Unit

    Permalink

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

  8. def beforeStartup(): Unit

    Permalink

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

  9. def clone(): AnyRef

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. 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

  25. final def withErrorHandler(handler: ErrorRequestHandler)(implicit ec: ExecutionContext): 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

  26. final def withFilter(filter: Option[RequestFilter]): RequestRouter

    Permalink

    Run any RequestHandlers returned by this RequestRouter through an optional RequestFilter

  27. final def withFilter(filter: RequestFilter): RequestRouter

    Permalink

    Run any RequestHandlers returned by this RequestRouter through a RequestFilter

  28. final def withFilters(filters: TraversableOnce[RequestFilter]): RequestRouter

    Permalink

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

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 AnyRef

Inherited from Any

Ungrouped