public class HttpContextManager extends Object
The HttpContextManager help to set up http context, e.g. current request, response, session, flash. It also provides method to clean up the context
| Modifier and Type | Class and Description |
|---|---|
static interface |
HttpContextManager.Listener |
| Constructor and Description |
|---|
HttpContextManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanUp()
Clean up context, release thread local etc
|
static void |
init(org.osgl.http.H.Request request,
org.osgl.http.H.Response response)
Initialize the Http Context.
|
static void |
save()
Persist session and flash to cookie, write all cookies to http response
|
public static void init(org.osgl.http.H.Request request,
org.osgl.http.H.Response response)
Initialize the Http Context. This will set up current context for request, response, session (resolved from cookie) and flash (resolved from cookie)
request - the http requestresponse - the http responsepublic static void save()
Persist session and flash to cookie, write all cookies to http response
public static void cleanUp()
Clean up context, release thread local etc
Copyright © 2014–2018 OSGL (Open Source General Library). All rights reserved.