|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.mvc.Http.Context
public static class Http.Context
The global HTTP context.
Nested Class Summary | |
---|---|
static class |
Http.Context.Implicit
Import in templates to get implicit HTTP context. |
Field Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
args
Free space to store your request specific data |
static java.lang.ThreadLocal<Http.Context> |
current
|
Constructor Summary | |
---|---|
Http.Context(Http.Request request,
java.util.Map<java.lang.String,java.lang.String> sessionData,
java.util.Map<java.lang.String,java.lang.String> flashData)
Creates a new HTTP context. |
Method Summary | |
---|---|
static Http.Context |
current()
Retrieves the current HTTP context, for the current thread. |
Http.Flash |
flash()
Returns the current flash scope. |
Http.Request |
request()
Returns the current request. |
Http.Response |
response()
Returns the current response. |
Http.Session |
session()
Returns the current session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.ThreadLocal<Http.Context> current
public java.util.Map<java.lang.String,java.lang.Object> args
Constructor Detail |
---|
public Http.Context(Http.Request request, java.util.Map<java.lang.String,java.lang.String> sessionData, java.util.Map<java.lang.String,java.lang.String> flashData)
request
- the HTTP requestsessionData
- the session data extracted from the session cookieflashData
- the flash data extracted from the flash cookieMethod Detail |
---|
public static Http.Context current()
public Http.Request request()
public Http.Response response()
public Http.Session session()
public Http.Flash flash()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |