Class Download
java.lang.Object
cool.scx.web.vo.Download
- All Implemented Interfaces:
cool.scx.common.functional.ScxConsumer<RoutingContext,,Exception> BaseVo
文件下载 vo
- Version:
- 0.0.1
- Author:
- scx567888
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final Stringprotected final MediaTypeprotected final InputStreamprotected final Pathprotected final cool.scx.web.vo.BaseWriter.Type -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaccept(RoutingContext context) static ScxHttpServerResponsefillContentType(ScxHttpServerResponse response, MediaType contentType) static Downloadstatic Downloadof(InputStream inputStream, String downloadName) static Downloadstatic Download
-
Field Details
-
inputStream
-
path
-
bytes
protected final byte[] bytes -
type
protected final cool.scx.web.vo.BaseWriter.Type type -
contentType
-
contentDisposition
-
-
Method Details
-
of
-
of
-
of
-
of
-
fillContentType
public static ScxHttpServerResponse fillContentType(ScxHttpServerResponse response, MediaType contentType) -
accept
- Specified by:
acceptin interfacecool.scx.common.functional.ScxConsumer<RoutingContext,Exception>
-