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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Resources
- Serializable
- Product
- Equals
- ServerErrorResponse
- Plan
- RequestPlan
- ExceptionHandler
- ChannelInboundHandlerAdapter
- ChannelInboundHandler
- ChannelHandlerAdapter
- ChannelHandler
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def badRequest: (HttpRequest[ReceivedMessage]) => Any
- val base: URL
- val cacheSeconds: Int
- def channelActive(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws(classOf[java.lang.Exception]) @Skip()
- def channelInactive(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws(classOf[java.lang.Exception]) @Skip()
- def channelRead(ctx: ChannelHandlerContext, msg: AnyRef): Unit
- Definition Classes
- RequestPlan → ChannelInboundHandlerAdapter → ChannelInboundHandler
- final def channelReadComplete(ctx: ChannelHandlerContext): Unit
- Definition Classes
- RequestPlan → ChannelInboundHandlerAdapter → ChannelInboundHandler
- def channelRegistered(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws(classOf[java.lang.Exception]) @Skip()
- def channelUnregistered(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws(classOf[java.lang.Exception]) @Skip()
- def channelWritabilityChanged(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws(classOf[java.lang.Exception]) @Skip()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensureNotSharable(): Unit
- Attributes
- protected[channel]
- Definition Classes
- ChannelHandlerAdapter
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def exceptionCaught(ctx: ChannelHandlerContext, t: Throwable): Unit
- Definition Classes
- ExceptionHandler
- def forbid: (HttpRequest[ReceivedMessage]) => Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def handlerAdded(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelHandlerAdapter → ChannelHandler
- Annotations
- @throws(classOf[java.lang.Exception])
- def handlerRemoved(arg0: ChannelHandlerContext): Unit
- Definition Classes
- ChannelHandlerAdapter → ChannelHandler
- Annotations
- @throws(classOf[java.lang.Exception])
- def intent: Intent
- Definition Classes
- Resources → Plan
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSharable(): Boolean
- Definition Classes
- ChannelHandlerAdapter
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def notFound: (HttpRequest[ReceivedMessage]) => Any
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onException(ctx: ChannelHandlerContext, t: Throwable): Unit
- Definition Classes
- ServerErrorResponse → ExceptionHandler
- val passOnFail: Boolean
- def passOr[T <: HttpResponse](rf: => ResponseFunction[HttpResponse])(req: HttpRequest[ReceivedMessage]): Any
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def requestIntent: Intent
- Definition Classes
- Plan → RequestPlan
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def userEventTriggered(arg0: ChannelHandlerContext, arg1: AnyRef): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws(classOf[java.lang.Exception]) @Skip()
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated