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

Serves static resources. Adapted from Netty's example HttpStaticFileServerHandler

Annotations
@Sharable()
Source
resources.scala
Linear Supertypes
Serializable, Product, Equals, ServerErrorResponse, Plan, RequestPlan, ExceptionHandler, ChannelInboundHandlerAdapter, ChannelInboundHandler, ChannelHandlerAdapter, ChannelHandler, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Resources
  2. Serializable
  3. Product
  4. Equals
  5. ServerErrorResponse
  6. Plan
  7. RequestPlan
  8. ExceptionHandler
  9. ChannelInboundHandlerAdapter
  10. ChannelInboundHandler
  11. ChannelHandlerAdapter
  12. ChannelHandler
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 channelActive(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  9. def channelInactive(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  10. def channelRead(ctx: ChannelHandlerContext, msg: AnyRef): Unit
    Definition Classes
    RequestPlan → ChannelInboundHandlerAdapter → ChannelInboundHandler
  11. final def channelReadComplete(ctx: ChannelHandlerContext): Unit
    Definition Classes
    RequestPlan → ChannelInboundHandlerAdapter → ChannelInboundHandler
  12. def channelRegistered(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  13. def channelUnregistered(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  14. def channelWritabilityChanged(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  16. def ensureNotSharable(): Unit
    Attributes
    protected[channel]
    Definition Classes
    ChannelHandlerAdapter
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def exceptionCaught(ctx: ChannelHandlerContext, t: Throwable): Unit
    Definition Classes
    ExceptionHandler
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. def forbid: (HttpRequest[ReceivedMessage]) => Any
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def handlerAdded(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws(classOf[java.lang.Exception])
  23. def handlerRemoved(arg0: ChannelHandlerContext): Unit
    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    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 isSharable(): Boolean
    Definition Classes
    ChannelHandlerAdapter
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def notFound: (HttpRequest[ReceivedMessage]) => Any
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def onException(ctx: ChannelHandlerContext, t: Throwable): Unit
    Definition Classes
    ServerErrorResponse → ExceptionHandler
  32. val passOnFail: Boolean
  33. def passOr[T <: HttpResponse](rf: => ResponseFunction[HttpResponse])(req: HttpRequest[ReceivedMessage]): Any
  34. def productElementNames: Iterator[String]
    Definition Classes
    Product
  35. def requestIntent: Intent
    Definition Classes
    Plan → RequestPlan
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def userEventTriggered(arg0: ChannelHandlerContext, arg1: AnyRef): Unit
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @throws(classOf[java.lang.Exception]) @Skip()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ServerErrorResponse

Inherited from Plan

Inherited from RequestPlan

Inherited from ExceptionHandler

Inherited from ChannelInboundHandlerAdapter

Inherited from ChannelInboundHandler

Inherited from ChannelHandlerAdapter

Inherited from ChannelHandler

Inherited from AnyRef

Inherited from Any

Ungrouped