play.mvc.results
类 Result

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 play.utils.FastRuntimeException
                  继承者 play.mvc.results.Result
所有已实现的接口:
java.io.Serializable
直接已知子类:
BadRequest, Error, Forbidden, NoResult, NotFound, NotModified, Ok, Redirect, RedirectToStatic, RenderBinary, RenderHtml, RenderJson, RenderStatic, RenderTemplate, RenderText, RenderXml, Status, Unauthorized, WebSocketResult

public abstract class Result
extends FastRuntimeException

Result support

另请参见:
序列化表格

构造方法摘要
Result()
           
Result(java.lang.String description)
           
 
方法摘要
abstract  void apply(Http.Request request, Http.Response response)
           
protected  java.lang.String getEncoding()
          The encoding that should be used when writing this response to the client
protected  void setContentTypeIfNotSet(Http.Response response, java.lang.String contentType)
           
 
从类 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
 

构造方法详细信息

Result

public Result()

Result

public Result(java.lang.String description)
方法详细信息

apply

public abstract void apply(Http.Request request,
                           Http.Response response)

setContentTypeIfNotSet

protected void setContentTypeIfNotSet(Http.Response response,
                                      java.lang.String contentType)

getEncoding

protected java.lang.String getEncoding()
The encoding that should be used when writing this response to the client



Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly