com.sksamuel.scruffy

ScruffyContext

case class ScruffyContext(endpoints: List[HttpEndpoint], listeners: List[HttpListener], filters: List[HttpFilter], errorHandler: ErrorHandler, notFoundHandler: (HttpRequest) ⇒ HttpResponse, sessionManager: Option[SessionManager], sessionConfig: SessionConfig, requestIdGenerator: Option[RequestIdGenerator], scalper: Scalper) extends StrictLogging with Product with Serializable

Contains the configuration etc for a scruffy managed set of endpoints.

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

Instance Constructors

  1. new ScruffyContext(endpoints: List[HttpEndpoint], listeners: List[HttpListener], filters: List[HttpFilter], errorHandler: ErrorHandler, notFoundHandler: (HttpRequest) ⇒ HttpResponse, sessionManager: Option[SessionManager], sessionConfig: SessionConfig, requestIdGenerator: Option[RequestIdGenerator], scalper: Scalper)

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 add(filter: HttpFilter): ScruffyContext

  7. def add(listener: HttpListener): ScruffyContext

    Registers a ScruffyListener with this instance.

    Registers a ScruffyListener with this instance. Multiple listeners can be added.

  8. def add(endpoint: HttpEndpoint): ScruffyContext

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val endpoints: List[HttpEndpoint]

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

    Definition Classes
    AnyRef
  13. def errorHandler(eh: ErrorHandler): ScruffyContext

  14. val errorHandler: ErrorHandler

  15. val filters: List[HttpFilter]

  16. def finalize(): Unit

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

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

    Definition Classes
    Any
  19. val listeners: List[HttpListener]

  20. val logger: Logger

    Attributes
    protected
    Definition Classes
    StrictLogging → Logging
  21. def merge(other: ScruffyContext): ScruffyContext

  22. def mount(module: HttpModule*): ScruffyContext

    Mounts the HttpModules.

    Mounts the HttpModules. This includes - endpoints - filters - listeners - not found handlers - error handlers

    Multiple modules can be registered and the order of registration does not matter.

    module

    the HttpModules to register.

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

    Definition Classes
    AnyRef
  24. def notFound(nfh: (HttpRequest) ⇒ HttpResponse): ScruffyContext

  25. val notFoundHandler: (HttpRequest) ⇒ HttpResponse

  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. val requestIdGenerator: Option[RequestIdGenerator]

  29. val scalper: Scalper

  30. val sessionConfig: SessionConfig

  31. def sessionManager(manager: SessionManager): ScruffyContext

  32. val sessionManager: Option[SessionManager]

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StrictLogging

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped