Package play.mvc
Class Controller
java.lang.Object
play.mvc.Controller
- All Implemented Interfaces:
PlayContextController
,PlayController
- Direct Known Subclasses:
RebelController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActionContext
protected Scope.Flash
protected Scope.Params
protected Scope.RenderArgs
protected Http.Request
protected Http.Response
protected Scope.Session
protected Validation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BadRequest
protected void
protected static void
Deprecated.instead if throwing an exception we recommend to RETURN the result.protected static void
Deprecated.instead if throwing an exception we recommend to RETURN the result.protected Forbidden
void
setContext
(ActionContext actionContext) protected View
protected View
viewResult
(String templateName)
-
Field Details
-
actionContext
-
request
-
response
-
session
-
flash
-
params
-
renderArgs
-
validation
-
-
Constructor Details
-
Controller
public Controller()
-
-
Method Details
-
setContext
- Specified by:
setContext
in interfacePlayContextController
-
checkAuthenticity
protected void checkAuthenticity() -
forbidden
Deprecated.instead if throwing an exception we recommend to RETURN the result. It makes your code clear and testable. Use methodforbiddenResult()
.This "Play1-style" method throwsForbidden
exception. -
forbidden
Deprecated.instead if throwing an exception we recommend to RETURN the result. It makes your code clear and testable. Use methodforbiddenResult()
.This "Play1-style" method throwsForbidden
exception. -
badRequest
-
viewResult
-
viewResult
-
forbiddenResult
-