JavaScript is disabled on your browser.
play.mvc

Class Controller

    • Constructor Detail

      • Controller

        public Controller()
    • Method Detail

      • ctx

        public static Http.Context ctx()
        Returns the current HTTP context.
      • request

        public static Http.Request request()
        Returns the current HTTP request.
      • lang

        public static Lang lang()
        Returns the current lang.
      • changeLang

        public static boolean changeLang(java.lang.String code)
        Change durably the lang for the current user
        Parameters:
        code - New lang code to use (e.g. "fr", "en_US", etc.)
        Returns:
        true if the requested lang was supported by the application, otherwise false.
      • response

        public static Http.Response response()
        Returns the current HTTP response.
      • session

        public static Http.Session session()
        Returns the current HTTP session.
      • session

        public static void session(java.lang.String key,
         java.lang.String value)
        Puts a new value into the current session.
      • session

        public static java.lang.String session(java.lang.String key)
        Returns a value from the session.
      • flash

        public static Http.Flash flash()
        Returns the current HTTP flash scope.
      • flash

        public static void flash(java.lang.String key,
         java.lang.String value)
        Puts a new value into the flash scope.
      • flash

        public static java.lang.String flash(java.lang.String key)
        Returns a value from the flash scope.

AltStyle によって変換されたページ (->オリジナル) /