类 play.mvc.results.Result
的使用

使用 Result 的软件包
play   
play.data.validation   
play.mvc.results   
play.plugins   
 

playResult 的使用
 

参数类型为 Resultplay 中的方法
 void PlayPlugin.onActionInvocationResult(Result result)
          Called when the action method has thrown a result.
 

play.data.validationResult 的使用
 

参数类型为 Resultplay.data.validation 中的方法
 void ValidationPlugin.onActionInvocationResult(Result result)
           
 

play.mvc.resultsResult 的使用
 

play.mvc.resultsResult 的子类
 class BadRequest
          400 Bad Request
 class Error
          500 Error
 class Forbidden
          403 Forbidden
 class NoResult
           
 class NotFound
          404 not found
 class NotModified
          304 Not Modified
 class Ok
          200 OK
 class Redirect
          302 Redirect
 class RedirectToStatic
          302 Redirect
 class RenderBinary
          200 OK with application/octet-stream
 class RenderHtml
          200 OK with a text/plain
 class RenderJson
          200 OK with application/json
 class RenderStatic
           
 class RenderTemplate
          200 OK with a template rendering
 class RenderText
          200 OK with a text/plain
 class RenderXml
          200 OK with a text/xml
 class Status
           
 class Unauthorized
          401 Unauthorized
 class WebSocketDisconnect
           
 class WebSocketResult
          WebSocket Result support
 

play.pluginsResult 的使用
 

参数类型为 Resultplay.plugins 中的方法
 void PluginCollection.onActionInvocationResult(Result result)
           
 



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