Class

unfiltered.netty

Resources

Related Doc: package netty

Permalink

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, 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. Serializable
  4. Product
  5. Equals
  6. ServerErrorResponse
  7. Plan
  8. RequestPlan
  9. ExceptionHandler
  10. ChannelInboundHandlerAdapter
  11. ChannelInboundHandler
  12. ChannelHandlerAdapter
  13. ChannelHandler
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    Permalink

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 badRequest: (HttpRequest[ReceivedMessage]) ⇒ Any

    Permalink
  6. val base: URL

    Permalink
  7. val cacheSeconds: Int

    Permalink
  8. def channelActive(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Skip() @throws( classOf[java.lang.Exception] )
  9. def channelInactive(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Skip() @throws( classOf[java.lang.Exception] )
  10. def channelRead(ctx: ChannelHandlerContext, msg: AnyRef): Unit

    Permalink
    Definition Classes
    RequestPlan → ChannelInboundHandlerAdapter → ChannelInboundHandler
  11. final def channelReadComplete(ctx: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    RequestPlan → ChannelInboundHandlerAdapter → ChannelInboundHandler
  12. def channelRegistered(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Skip() @throws( classOf[java.lang.Exception] )
  13. def channelUnregistered(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Skip() @throws( classOf[java.lang.Exception] )
  14. def channelWritabilityChanged(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Skip() @throws( classOf[java.lang.Exception] )
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def ensureNotSharable(): Unit

    Permalink
    Attributes
    protected[io.netty.channel]
    Definition Classes
    ChannelHandlerAdapter
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def exceptionCaught(ctx: ChannelHandlerContext, t: Throwable): Unit

    Permalink
    Definition Classes
    ExceptionHandler
  19. def finalize(): Unit

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

    Permalink
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def handlerAdded(arg0: ChannelHandlerContext): Unit

    Permalink
    Definition Classes
    ChannelHandlerAdapter → ChannelHandler
    Annotations
    @throws( classOf[java.lang.Exception] )
  23. def handlerRemoved(arg0: ChannelHandlerContext): Unit

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

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

    Permalink
    Definition Classes
    Any
  26. def isSharable(): Boolean

    Permalink
    Definition Classes
    ChannelHandlerAdapter
  27. final def ne(arg0: AnyRef): Boolean

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

    Permalink
  29. final def notify(): Unit

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

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

    Permalink
    Definition Classes
    ServerErrorResponse → ExceptionHandler
  32. val passOnFail: Boolean

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

    Permalink
  34. def requestIntent: Intent

    Permalink
    Definition Classes
    Plan → RequestPlan
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def userEventTriggered(arg0: ChannelHandlerContext, arg1: Any): Unit

    Permalink
    Definition Classes
    ChannelInboundHandlerAdapter → ChannelInboundHandler
    Annotations
    @Skip() @throws( classOf[java.lang.Exception] )
  37. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

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