Package play.mvc

Class Controller

java.lang.Object
play.mvc.Controller
All Implemented Interfaces:
PlayContextController, PlayController
Direct Known Subclasses:
RebelController

public class Controller extends Object implements PlayContextController
  • Field Details

  • Constructor Details

    • Controller

      public Controller()
  • Method Details

    • setContext

      public void setContext(ActionContext actionContext)
      Specified by:
      setContext in interface PlayContextController
    • checkAuthenticity

      protected void checkAuthenticity()
    • forbidden

      @Deprecated protected static void forbidden()
      Deprecated.
      instead if throwing an exception we recommend to RETURN the result. It makes your code clear and testable. Use method forbiddenResult().
      This "Play1-style" method throws Forbidden exception.
    • forbidden

      @Deprecated protected static void forbidden(String reason)
      Deprecated.
      instead if throwing an exception we recommend to RETURN the result. It makes your code clear and testable. Use method forbiddenResult().
      This "Play1-style" method throws Forbidden exception.
    • badRequest

      protected BadRequest badRequest()
    • viewResult

      protected View viewResult()
    • viewResult

      protected View viewResult(String templateName)
    • forbiddenResult

      protected Forbidden forbiddenResult()