|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.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
| 构造方法摘要 | |
|---|---|
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 |
|
| 方法摘要 | |
|---|---|
void |
apply(Http.Request request,
Http.Response response)
|
| 从类 play.mvc.results.Result 继承的方法 |
|---|
getEncoding, setContentTypeIfNotSet |
| 从类 play.utils.FastRuntimeException 继承的方法 |
|---|
fillInStackTrace |
| 从类 java.lang.Throwable 继承的方法 |
|---|
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public RenderBinary(java.io.InputStream is,
java.lang.String name)
is - the stream to read fromname - the name to use as Content-Diposition attachement filename
public 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 inline
public 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 inline
public 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 back
public RenderBinary(java.io.File file,
java.lang.String name,
boolean inline)
file - readable file to send back| 方法详细信息 |
|---|
public void apply(Http.Request request,
Http.Response response)
Result 中的 apply
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||