程序包 cool.scx.core.vo
类 Download
java.lang.Object
cool.scx.core.vo.Download
文件下载 vo
- 版本:
- 1.0.10
- 作者:
- scx567888
-
字段概要
字段修饰符和类型字段说明protected final byte[]字节数组protected final Stringaprotected final Stringaprotected final InputStream输入流protected final Path路径protected final cool.scx.core.vo.BaseWriter.Type数据来源 -
方法概要
修饰符和类型方法说明final voidhandle(io.vertx.ext.web.RoutingContext context) static Downloadastatic Downloadof(InputStream inputStream, String downloadName) astatic Downloadastatic Downloadaprotected voidsendBytes(io.vertx.ext.web.RoutingContext context) sendBytes.protected voidsendFile(io.vertx.ext.web.RoutingContext context) sendFile.protected voidsendInputStream(io.vertx.ext.web.RoutingContext context) sendBytes.
-
字段详细资料
-
inputStream
输入流 -
path
路径 -
bytes
protected final byte[] bytes字节数组 -
type
protected final cool.scx.core.vo.BaseWriter.Type type数据来源 -
contentType
a -
contentDisposition
a
-
-
方法详细资料
-
of
a- 参数:
inputStream- adownloadName- a- 返回:
- a
-
of
a- 参数:
bytes- adownloadName- a- 返回:
- a
-
of
a- 参数:
path- adownloadName- a- 返回:
- a
-
of
a- 参数:
path- a- 返回:
- a
-
handle
public final void handle(io.vertx.ext.web.RoutingContext context) - 指定者:
handle在接口中cool.scx.functional.ScxHandlerAE<io.vertx.ext.web.RoutingContext,Exception>
-
sendBytes
protected void sendBytes(io.vertx.ext.web.RoutingContext context) sendBytes.
- 参数:
context- aRoutingContextobject
-
sendInputStream
protected void sendInputStream(io.vertx.ext.web.RoutingContext context) sendBytes.
- 参数:
context- aRoutingContextobject
-
sendFile
sendFile.
- 参数:
context- c- 抛出:
NotFoundException- if any.
-