play.server
类 FileService

java.lang.Object
  继承者 play.server.FileService

public class FileService
extends java.lang.Object


嵌套类摘要
static class FileService.ByteRangeInput
           
 
构造方法摘要
FileService()
           
 
方法摘要
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)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FileService

public FileService()
方法详细信息

serve

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

getChunckedInput

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