public interface SessionMapper
A StateMapper
maps serialized state (from session/flash) to response
or from request
Modifier and Type | Method and Description |
---|---|
java.lang.String |
readFlash(org.osgl.http.H.Request request)
Read the incoming HTTP request and extract serialized flash state.
|
java.lang.String |
readSession(org.osgl.http.H.Request request)
Read the incoming HTTP request and extract serialized session state.
|
void |
write(java.lang.String session,
java.lang.String flash,
org.osgl.http.H.Response response)
Write serialized session and flash state into
response . |
void write(java.lang.String session, java.lang.String flash, org.osgl.http.H.Response response)
Write serialized session and flash state into response
.
session
- the session state (a string) to be written to the responseflash
- the flash state (a string) to be written to the responseresponse
- the HTTP responsejava.lang.String readSession(org.osgl.http.H.Request request)
Read the incoming HTTP request and extract serialized session state.
request
- the incoming HTTP requestnull
if not session state found in the request using this mapperjava.lang.String readFlash(org.osgl.http.H.Request request)
Read the incoming HTTP request and extract serialized flash state.
request
- the incoming HTTP requestnull
if not flash state found in the request using this mapperCopyright © 2014–2017 ActFramework. All rights reserved.