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
- Serializable
- Product
- Equals
- ServerErrorResponse
- Plan
- RequestPlan
- ExceptionHandler
- ChannelInboundHandlerAdapter
- ChannelInboundHandler
- ChannelHandlerAdapter
- ChannelHandler
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Resources(base: URL, cacheSeconds: Int = 60, passOnFail: Boolean = true)
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( ... ) @native()
-
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
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def forbid: (HttpRequest[ReceivedMessage]) ⇒ Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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: PartialFunction[HttpRequest[ReceivedMessage] with Responder[HttpResponse], Any]
- 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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
requestIntent: Intent
- Definition Classes
- Plan → RequestPlan
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
userEventTriggered(arg0: ChannelHandlerContext, arg1: Any): Unit
- Definition Classes
- ChannelInboundHandlerAdapter → ChannelInboundHandler
- Annotations
- @throws( classOf[java.lang.Exception] ) @Skip()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()