public class FileService
extends java.lang.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(java.io.RandomAccessFile raf,
java.lang.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(java.io.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(java.io.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 java.io.FileNotFoundException
java.io.FileNotFoundException
public static org.jboss.netty.handler.stream.ChunkedInput getChunckedInput(java.io.RandomAccessFile raf, java.lang.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 java.io.IOException
java.io.IOException
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly