|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.mvc.Results play.mvc.Controller
public abstract class Controller
Superclass for a Java-based controller.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class play.mvc.Results |
---|
Results.AsyncResult, Results.ByteChunks, Results.Chunks<A>, Results.Redirect, Results.Status, Results.StringChunks, Results.Todo |
Field Summary |
---|
Fields inherited from class play.mvc.Results |
---|
TODO |
Constructor Summary | |
---|---|
Controller()
|
Method Summary | |
---|---|
static boolean |
changeLang(java.lang.String code)
Change durably the lang for the current user |
static void |
clearLang()
Clear the lang for the current user. |
static Http.Context |
ctx()
Returns the current HTTP context. |
static Http.Flash |
flash()
Returns the current HTTP flash scope. |
static java.lang.String |
flash(java.lang.String key)
Returns a value from the flash scope. |
static void |
flash(java.lang.String key,
java.lang.String value)
Puts a new value into the flash scope. |
static Lang |
lang()
Returns the current lang. |
static Http.Request |
request()
Returns the current HTTP request. |
static Http.Response |
response()
Returns the current HTTP response. |
static Http.Session |
session()
Returns the current HTTP session. |
static java.lang.String |
session(java.lang.String key)
Returns a value from the session. |
static void |
session(java.lang.String key,
java.lang.String value)
Puts a new value into the current session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Controller()
Method Detail |
---|
public static Http.Context ctx()
public static Http.Request request()
public static Lang lang()
public static boolean changeLang(java.lang.String code)
code
- New lang code to use (e.g. "fr", "en_US", etc.)
public static void clearLang()
public static Http.Response response()
public static Http.Session session()
public static void session(java.lang.String key, java.lang.String value)
public static java.lang.String session(java.lang.String key)
public static Http.Flash flash()
public static void flash(java.lang.String key, java.lang.String value)
public static java.lang.String flash(java.lang.String key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |