Class Raw
java.lang.Object
cool.scx.web.vo.Raw
- All Implemented Interfaces:
cool.scx.functional.ScxConsumer<RoutingContext, Exception>,BaseVo
-
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 Rawof(byte[] bytes, FileFormat fileFormat) static Rawof(InputStream inputStream, FileFormat fileFormat) static Raw
-
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
-
fillContentType
public static ScxHttpServerResponse fillContentType(ScxHttpServerResponse response, MediaType contentType) -
accept
- Specified by:
acceptin interfacecool.scx.functional.ScxConsumer<RoutingContext, Exception>
-