public class FileServerHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>
| Modifier and Type | Field and Description |
|---|---|
static int |
HTTP_CACHE_SECONDS |
static java.lang.String |
HTTP_DATE_FORMAT |
static java.lang.String |
HTTP_DATE_GMT_TIMEZONE |
static java.lang.String |
READ |
| Constructor and Description |
|---|
FileServerHandler(java.nio.file.Path base,
boolean fullOut,
boolean showHiddenFiles) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final java.lang.String HTTP_DATE_FORMAT
public static final java.lang.String HTTP_DATE_GMT_TIMEZONE
public static final java.lang.String READ
public static final int HTTP_CACHE_SECONDS
public FileServerHandler(java.nio.file.Path base,
boolean fullOut,
boolean showHiddenFiles)
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http.FullHttpRequest request)
throws java.lang.Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpRequest>java.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter