Resources

@ChannelHandler$$Sharable case class Resources(base: URL, cacheSeconds: Int, passOnFail: Boolean) extends Plan with ServerErrorResponse
Serves static resources.
Adapted from Netty's example HttpStaticFileServerHandler
trait Serializable
trait Product
trait Equals
trait ServerErrorResponse
trait Plan
trait RequestPlan
trait ExceptionHandler
class ChannelInboundHandlerAdapter
trait ChannelInboundHandler
class ChannelHandlerAdapter
trait ChannelHandler
class Object
trait Matchable
class Any

Value members

Methods

def passOr[T <: HttpResponse](rf: => ResponseFunction[HttpResponse])(req: HttpRequest[ReceivedMessage]): Matchable
def forbid: HttpRequest[ReceivedMessage] => Matchable
def notFound: HttpRequest[ReceivedMessage] => Matchable
def badRequest: HttpRequest[ReceivedMessage] => Matchable
def intent: Intent

Inherited methods

@throws(java.lang.Exception)
def handlerAdded(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelActive(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelInboundHandlerAdapter
def productElementNames: Iterator[String]
Inhertied from
Product
def onException(ctx: ChannelHandlerContext, t: Throwable): Unit
Inhertied from
ServerErrorResponse
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def userEventTriggered(x$0: ChannelHandlerContext, x$1: <FromJavaObject>): Unit
Inhertied from
ChannelInboundHandlerAdapter
def isSharable(): Boolean
Inhertied from
ChannelHandlerAdapter
def productIterator: Iterator[Any]
Inhertied from
Product
override def channelRead(ctx: ChannelHandlerContext, msg: Object): Unit
Definition Classes
RequestPlan -> ChannelInboundHandlerAdapter -> ChannelInboundHandler
Inhertied from
RequestPlan
def requestIntent: Intent
Inhertied from
Plan
override def exceptionCaught(ctx: ChannelHandlerContext, t: Throwable): Unit
Definition Classes
ExceptionHandler
Inhertied from
ExceptionHandler
final override def channelReadComplete(ctx: ChannelHandlerContext): Unit
Definition Classes
RequestPlan -> ChannelInboundHandlerAdapter -> ChannelInboundHandler
Inhertied from
RequestPlan
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelInactive(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelInboundHandlerAdapter
@throws(java.lang.Exception)
def handlerRemoved(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelUnregistered(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelWritabilityChanged(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelInboundHandlerAdapter
@ChannelHandlerMask$$Skip @throws(java.lang.Exception)
def channelRegistered(x$0: ChannelHandlerContext): Unit
Inhertied from
ChannelInboundHandlerAdapter