Trait/Object

skinny.micro

Handler

Related Docs: object Handler | package micro

Permalink

trait Handler extends Initializable with SkinnyContextInitializer with UnstableAccessValidationConfig with RouteRegistryAccessor with ServletContextAccessor with LoggerProvider

A Handler is the SkinnyMicro abstraction for an object that operates on a request/response pair.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Handler
  2. LoggerProvider
  3. ServletContextAccessor
  4. RicherStringImplicits
  5. ServletApiImplicits
  6. RouteRegistryAccessor
  7. UnstableAccessValidationConfig
  8. SkinnyContextInitializer
  9. Initializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Config extends AnyRef

    Permalink
    Definition Classes
    Initializable
  2. abstract type ConfigT <: AnyRef { ... /* 3 definitions in type refinement */ }

    Permalink
    Definition Classes
    ServletContextAccessorInitializable

Abstract Value Members

  1. abstract def handle(request: HttpServletRequest, res: HttpServletResponse): Unit

    Permalink

    Handles a request and writes to the response.

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 asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. var config: ConfigT

    Permalink

    The configuration, typically a ServletConfig or FilterConfig.

    The configuration, typically a ServletConfig or FilterConfig.

    Definition Classes
    ServletContextAccessor
  7. implicit def configWrapper(config: ConfigT): Config { object initParameters }

    Permalink
    Attributes
    protected
    Definition Classes
    ServletContextAccessorInitializable
  8. def context: SkinnyContext

    Permalink
    Definition Classes
    SkinnyContextInitializer
  9. def contextPath: String

    Permalink
    Definition Classes
    ServletContextAccessor
  10. implicit def enrichRequest(request: HttpServletRequest): RichRequest

    Permalink
    Definition Classes
    ServletApiImplicits
  11. implicit def enrichResponse(response: HttpServletResponse): RichResponse

    Permalink
    Definition Classes
    ServletApiImplicits
  12. implicit def enrichServletContext(servletContext: ServletContext): RichServletContext

    Permalink
    Definition Classes
    ServletApiImplicits
  13. implicit def enrichSession(session: HttpSession): RichHttpServletSession

    Permalink
    Definition Classes
    ServletApiImplicits
  14. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def initParameter(name: String): Option[String]

    Permalink

    Gets an init parameter from the config.

    Gets an init parameter from the config.

    name

    the name of the key

    returns

    an option containing the value of the parameter if defined, or None if the parameter is not set.

    Definition Classes
    ServletContextAccessor
  20. def initialize(config: ConfigT): Unit

    Permalink

    Initializes the kernel.

    Initializes the kernel. Used to provide context that is unavailable when the instance is constructed, for example the servlet lifecycle. Should set the config variable to the parameter.

    config

    the configuration.

    Definition Classes
    ServletContextAccessorInitializable
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  23. def loggerName: String

    Permalink
    Attributes
    protected
    Definition Classes
    LoggerProvider
  24. def mount(ctx: ServletContext): Unit

    Permalink
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  28. def request(implicit ctx: SkinnyContext): HttpServletRequest

    Permalink
    Definition Classes
    SkinnyContextInitializer
  29. def respondTo: Seq[Format]

    Permalink

    Defines formats to be respond.

    Defines formats to be respond. By default, HTML, JSON, XML are available.

    returns

    formats

    Attributes
    protected
  30. def response(implicit ctx: SkinnyContext): HttpServletResponse

    Permalink
    Definition Classes
    SkinnyContextInitializer
  31. lazy val routes: RouteRegistry

    Permalink

    The routes registered in this kernel.

    The routes registered in this kernel.

    Definition Classes
    RouteRegistryAccessor
  32. def serverAuthority(implicit ctx: SkinnyContext): String

    Permalink
    Attributes
    protected
    Definition Classes
    ServletContextAccessor
  33. def serverHost(implicit ctx: SkinnyContext): String

    Permalink
    Definition Classes
    ServletContextAccessor
  34. def serverPort(implicit ctx: SkinnyContext): Int

    Permalink
    Definition Classes
    ServletContextAccessor
  35. implicit def servletContext: ServletContext

    Permalink

    The servlet context in which this kernel runs.

    The servlet context in which this kernel runs.

    Definition Classes
    ServletContextAccessor
  36. def shutdown(): Unit

    Permalink

    A hook to shutdown the class.

    A hook to shutdown the class. Bridges the gap between servlet's destroy and filter's destroy.

    Attributes
    protected
    Definition Classes
    Initializable
  37. def skinnyContext(implicit ctx: ServletContext): SkinnyContext

    Permalink

    Skinny Micro Context

    Skinny Micro Context

    Definition Classes
    SkinnyContextInitializer
  38. implicit def stringToRicherString(s: String): RicherString

    Permalink
    Definition Classes
    RicherStringImplicits
  39. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  41. def unstableAccessValidationEnabled: Boolean

    Permalink

    Enables unstable access validation.

    Enables unstable access validation.

    Attributes
    protected
    Definition Classes
    UnstableAccessValidationConfig
  42. def useMostlyStableHttpSession: Boolean

    Permalink

    Enables mostly stable Servlet HttpSession implementation instead.

    Enables mostly stable Servlet HttpSession implementation instead.

    Attributes
    protected
    Definition Classes
    UnstableAccessValidationConfig
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def withRequest[A](request: HttpServletRequest)(f: ⇒ A): A

    Permalink

    Executes the block with the given request bound to the request method.

    Executes the block with the given request bound to the request method.

    Attributes
    protected
    Definition Classes
    SkinnyContextInitializer
  47. def withRequestResponse[A](request: HttpServletRequest, response: HttpServletResponse)(f: ⇒ A): A

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyContextInitializer
  48. def withResponse[A](response: HttpServletResponse)(f: ⇒ A): A

    Permalink

    Executes the block with the given response bound to the response method.

    Executes the block with the given response bound to the response method.

    Attributes
    protected
    Definition Classes
    SkinnyContextInitializer

Inherited from LoggerProvider

Inherited from ServletContextAccessor

Inherited from RicherStringImplicits

Inherited from ServletApiImplicits

Inherited from RouteRegistryAccessor

Inherited from SkinnyContextInitializer

Inherited from Initializable

Inherited from AnyRef

Inherited from Any

Ungrouped