public class FileService extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileService.ByteRangeInput |
Constructor and Description |
---|
FileService() |
Modifier and Type | Method and Description |
---|---|
static org.jboss.netty.handler.stream.ChunkedInput |
getChunckedInput(RandomAccessFile raf,
String contentType,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse) |
static void |
serve(File localFile,
org.jboss.netty.handler.codec.http.HttpRequest nettyRequest,
org.jboss.netty.handler.codec.http.HttpResponse nettyResponse,
org.jboss.netty.channel.ChannelHandlerContext ctx,
Http.Request request,
Http.Response response,
org.jboss.netty.channel.Channel channel) |
public static void serve(File localFile, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest, org.jboss.netty.handler.codec.http.HttpResponse nettyResponse, org.jboss.netty.channel.ChannelHandlerContext ctx, Http.Request request, Http.Response response, org.jboss.netty.channel.Channel channel) throws FileNotFoundException
FileNotFoundException
public static org.jboss.netty.handler.stream.ChunkedInput getChunckedInput(RandomAccessFile raf, String contentType, org.jboss.netty.channel.Channel channel, org.jboss.netty.handler.codec.http.HttpRequest nettyRequest, org.jboss.netty.handler.codec.http.HttpResponse nettyResponse) throws IOException
IOException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly