|
|||||||||
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 |
Fields inherited from interface play.mvc.Http.HeaderNames |
---|
ACCEPT, ACCEPT_CHARSET, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ACCEPT_RANGES, AGE, ALLOW, AUTHORIZATION, CACHE_CONTROL, CONNECTION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_LOCATION, CONTENT_MD5, CONTENT_RANGE, CONTENT_TRANSFER_ENCODING, CONTENT_TYPE, COOKIE, DATE, ETAG, EXPECT, EXPIRES, FROM, HOST, IF_MATCH, IF_MODIFIED_SINCE, IF_NONE_MATCH, IF_RANGE, IF_UNMODIFIED_SINCE, LAST_MODIFIED, LOCATION, MAX_FORWARDS, PRAGMA, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, RANGE, REFERER, RETRY_AFTER, SERVER, SET_COOKIE, SET_COOKIE2, TE, TRAILER, TRANSFER_ENCODING, UPGRADE, USER_AGENT, VARY, VIA, WARNING, WWW_AUTHENTICATE |
Constructor Summary | |
---|---|
Controller()
|
Method Summary | ||
---|---|---|
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 DynamicForm |
form()
Instantiates a dynamic form. |
|
static
|
form(java.lang.Class<T> clazz)
Instantiates a new form that wraps the specified class. |
|
static
|
form(java.lang.String name,
java.lang.Class<T> clazz)
Instantiates a new form that wraps the specified class. |
|
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 vlue 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 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)
public static DynamicForm form()
public static <T> Form<T> form(java.lang.Class<T> clazz)
public static <T> Form<T> form(java.lang.String name, java.lang.Class<T> clazz)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |