|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException play.utils.FastRuntimeException play.mvc.results.Result play.mvc.results.RenderBinary
public class RenderBinary
200 OK with application/octet-stream
Constructor Summary | |
---|---|
RenderBinary(java.io.File file)
Send a file as the response. |
|
RenderBinary(java.io.File file,
java.lang.String name)
Send a file as the response. |
|
RenderBinary(java.io.File file,
java.lang.String name,
boolean inline)
Send a file as the response. |
|
RenderBinary(java.io.InputStream is,
java.lang.String name)
send a binary stream as the response |
|
RenderBinary(java.io.InputStream is,
java.lang.String name,
boolean inline)
send a binary stream as the response |
|
RenderBinary(java.io.InputStream is,
java.lang.String name,
long length)
|
|
RenderBinary(java.io.InputStream is,
java.lang.String name,
long length,
boolean inline)
|
|
RenderBinary(java.io.InputStream is,
java.lang.String name,
long length,
java.lang.String contentType,
boolean inline)
|
|
RenderBinary(java.io.InputStream is,
java.lang.String name,
java.lang.String contentType,
boolean inline)
send a binary stream as the response |
Method Summary | |
---|---|
void |
apply(Http.Request request,
Http.Response response)
|
Methods inherited from class play.mvc.results.Result |
---|
getEncoding, setContentTypeIfNotSet |
Methods inherited from class play.utils.FastRuntimeException |
---|
fillInStackTrace |
Methods inherited from class java.lang.Throwable |
---|
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RenderBinary(java.io.InputStream is, java.lang.String name)
is
- the stream to read fromname
- the name to use as Content-Diposition attachement filenamepublic RenderBinary(java.io.InputStream is, java.lang.String name, long length)
public RenderBinary(java.io.InputStream is, java.lang.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(java.io.InputStream is, java.lang.String name, java.lang.String contentType, 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(java.io.InputStream is, java.lang.String name, long length, java.lang.String contentType, boolean inline)
public RenderBinary(java.io.InputStream is, java.lang.String name, long length, boolean inline)
public RenderBinary(java.io.File file, java.lang.String name)
file
- readable file to send backname
- a name to use as Content-disposion's filenamepublic RenderBinary(java.io.File file)
file
- readable file to send backpublic RenderBinary(java.io.File file, java.lang.String name, boolean inline)
file
- readable file to send backMethod Detail |
---|
public void apply(Http.Request request, Http.Response response)
apply
in class Result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |