play.server
类 FileService
java.lang.Object
play.server.FileService
public class FileService
- extends java.lang.Object
方法摘要 |
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