unfiltered.netty

Resources

case class Resources(base: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true) extends SimpleChannelUpstreamHandler with Plan with ServerErrorResponse with Product with Serializable

Serves static resources. Adapted from Netty's example HttpStaticFileServerHandler

Linear Supertypes
Serializable, Serializable, Product, Equals, ServerErrorResponse, Plan, ExceptionHandler, SimpleChannelUpstreamHandler, ChannelUpstreamHandler, ChannelHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Resources
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ServerErrorResponse
  7. Plan
  8. ExceptionHandler
  9. SimpleChannelUpstreamHandler
  10. ChannelUpstreamHandler
  11. ChannelHandler
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Resources(base: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def badRequest: (HttpRequest[ReceivedMessage]) ⇒ Any

  6. val base: URL

  7. val cacheSeconds: Int

  8. def channelBound(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  9. def channelClosed(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  10. def channelConnected(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  11. def channelDisconnected(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  12. def channelInterestChanged(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  13. def channelOpen(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  14. def channelUnbound(arg0: ChannelHandlerContext, arg1: ChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  15. def childChannelClosed(arg0: ChannelHandlerContext, arg1: ChildChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  16. def childChannelOpen(arg0: ChannelHandlerContext, arg1: ChildChannelStateEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  17. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  19. def exceptionCaught(ctx: ChannelHandlerContext, e: ExceptionEvent): Unit

    Definition Classes
    ExceptionHandler
  20. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def forbid: (HttpRequest[ReceivedMessage]) ⇒ Any

  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def handleUpstream(arg0: ChannelHandlerContext, arg1: ChannelEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler → ChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  24. def intent: PartialFunction[HttpRequest[ReceivedMessage] with Responder[HttpResponse], Any]

    Definition Classes
    Resources → Plan
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def messageReceived(ctx: ChannelHandlerContext, e: MessageEvent): Unit

    Definition Classes
    Plan → SimpleChannelUpstreamHandler
  27. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  28. def notFound: (HttpRequest[ReceivedMessage]) ⇒ Any

  29. final def notify(): Unit

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

    Definition Classes
    AnyRef
  31. def onException(ctx: ChannelHandlerContext, t: Throwable): Unit

    Definition Classes
    ServerErrorResponse
  32. val passOnFail: Boolean

  33. def passOr[T <: HttpResponse](rf: ⇒ ResponseFunction[HttpResponse])(req: HttpRequest[ReceivedMessage]): Any

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def writeComplete(arg0: ChannelHandlerContext, arg1: WriteCompletionEvent): Unit

    Definition Classes
    SimpleChannelUpstreamHandler
    Annotations
    @throws( classOf[java.lang.Exception] )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ServerErrorResponse

Inherited from Plan

Inherited from ExceptionHandler

Inherited from SimpleChannelUpstreamHandler

Inherited from ChannelUpstreamHandler

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped