public class RenderBinary extends Result
Result.Payload| Constructor and Description |
|---|
RenderBinary(File file)
Send a file as the response.
|
RenderBinary(File file,
String name)
Send a file as the response.
|
RenderBinary(File file,
String name,
boolean inline)
Send a file as the response.
|
RenderBinary(InputStream is,
String name)
send a binary stream as the response
|
RenderBinary(InputStream is,
String name,
boolean inline)
send a binary stream as the response
|
RenderBinary(InputStream is,
String name,
long length) |
RenderBinary(InputStream is,
String name,
long length,
boolean inline) |
RenderBinary(InputStream is,
String name,
long length,
String contentType,
boolean inline) |
RenderBinary(InputStream is,
String name,
String contentType,
boolean inline)
send a binary stream as the response
|
RenderBinary(org.osgl.Osgl.Function<OutputStream,?> outputStreamVisitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.osgl.http.H.Request req,
org.osgl.http.H.Response resp) |
applyAfterCommitHandler, applyBeforeCommitHandler, applyMessage, applyStatus, clearThreadLocals, payload, status, status, statusCodedoFillInStackTrace, fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RenderBinary(InputStream is, String name)
is - the stream to read fromname - the name to use as Content-Diposition attachement filenamepublic RenderBinary(InputStream is, String name, long length)
public RenderBinary(InputStream is, String name, boolean inline)
is - the stream to read fromname - the name to use as Content-Diposition attachement filenameinline - true to set the response Content-Disposition to inlinepublic RenderBinary(InputStream is, String name, String contentType, boolean inline)
is - the stream to read fromname - the name to use as Content-Diposition attachement filenamecontentType - the content type of the binary streaminline - true to set the response Content-Disposition to inlinepublic RenderBinary(InputStream is, String name, long length, String contentType, boolean inline)
public RenderBinary(InputStream is, String name, long length, boolean inline)
public RenderBinary(File file, String name)
file - readable file to send backname - a name to use as Content-disposion's filenamepublic RenderBinary(File file)
file - readable file to send backpublic RenderBinary(File file, String name, boolean inline)
file - readable file to send backpublic RenderBinary(org.osgl.Osgl.Function<OutputStream,?> outputStreamVisitor)
Copyright © 2017. All Rights Reserved.