Class Download
java.lang.Object
cool.scx.web.vo.Download
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final byte[]protected final Stringprotected final cool.scx.http.MediaTypeprotected final InputStreamprotected final Pathprotected final cool.scx.web.vo.BaseWriter.Type -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaccept(cool.scx.http.routing.RoutingContext context) static cool.scx.http.ScxHttpServerResponsefillContentType(cool.scx.http.ScxHttpServerResponse response, cool.scx.http.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
protected final cool.scx.http.MediaType contentType -
contentDisposition
-
-
Method Details
-
of
-
of
-
of
-
of
-
fillContentType
public static cool.scx.http.ScxHttpServerResponse fillContentType(cool.scx.http.ScxHttpServerResponse response, cool.scx.http.MediaType contentType) -
accept
public final void accept(cool.scx.http.routing.RoutingContext context) - Specified by:
acceptin interfacecool.scx.common.functional.ScxConsumer<cool.scx.http.routing.RoutingContext,Exception>
-