public abstract static class Http.WrappedContext extends Http.Context
Http.Context.Implicitargs, current| Constructor and Description |
|---|
WrappedContext(Http.Context wrapped) |
| Modifier and Type | Method and Description |
|---|---|
play.api.mvc.RequestHeader |
_requestHeader()
The original Play request Header used to create this context.
|
boolean |
changeLang(Lang lang)
Change durably the lang for the current user.
|
boolean |
changeLang(java.lang.String code)
Change durably the lang for the current user.
|
void |
clearLang()
Clear the lang for the current user.
|
Http.Flash |
flash()
Returns the current flash scope.
|
java.lang.Long |
id()
The context id (unique)
|
Lang |
lang()
The current lang
|
Http.Request |
request()
Returns the current request.
|
Http.Response |
response()
Returns the current response.
|
Http.Session |
session()
Returns the current session.
|
clearTransientLang, current, messages, setTransientLang, setTransientLang, toString, withRequestpublic WrappedContext(Http.Context wrapped)
wrapped - the context the created instance will wrappublic java.lang.Long id()
Http.Contextid in class Http.Contextpublic Http.Request request()
Http.Contextrequest in class Http.Contextpublic Http.Response response()
Http.Contextresponse in class Http.Contextpublic Http.Session session()
Http.Contextsession in class Http.Contextpublic Http.Flash flash()
Http.Contextflash in class Http.Contextpublic play.api.mvc.RequestHeader _requestHeader()
Http.Context_requestHeader in class Http.Contextpublic Lang lang()
Http.Contextlang in class Http.Contextpublic boolean changeLang(java.lang.String code)
Http.ContextchangeLang in class Http.Contextcode - New lang code to use (e.g. "fr", "en-US", etc.)public boolean changeLang(Lang lang)
Http.ContextchangeLang in class Http.Contextlang - New Lang object to usepublic void clearLang()
Http.ContextclearLang in class Http.Context