public class HttpContextManager extends Object
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)
request - the http requestresponse - the http responsepublic static void save()
public static void cleanUp()
Copyright © 2017. All Rights Reserved.