|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Result 的软件包 | |
|---|---|
| play | |
| play.data.validation | |
| play.mvc.results | |
| play.plugins | |
| play 中 Result 的使用 |
|---|
| 参数类型为 Result 的 play 中的方法 | |
|---|---|
void |
PlayPlugin.onActionInvocationResult(Result result)
Called when the action method has thrown a result. |
| play.data.validation 中 Result 的使用 |
|---|
| 参数类型为 Result 的 play.data.validation 中的方法 | |
|---|---|
void |
ValidationPlugin.onActionInvocationResult(Result result)
|
| play.mvc.results 中 Result 的使用 |
|---|
| play.mvc.results 中 Result 的子类 | |
|---|---|
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.plugins 中 Result 的使用 |
|---|
| 参数类型为 Result 的 play.plugins 中的方法 | |
|---|---|
void |
PluginCollection.onActionInvocationResult(Result result)
|
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||