public abstract static class Http.WrappedContext extends Http.Context
Http.Context.Implicitargs, current| Constructor and Description |
|---|
Http.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(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() |
Http.Request |
request()
Returns the current request.
|
Http.Response |
response()
Returns the current response.
|
Http.Session |
session()
Returns the current session.
|
current, toStringpublic Http.WrappedContext(Http.Context wrapped)
public 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()
lang 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 void clearLang()
Http.ContextclearLang in class Http.Context