public class CompoundSesssionMapper extends java.lang.Object implements SessionMapper
Constructor and Description |
---|
CompoundSesssionMapper(java.util.List<SessionMapper> mappers) |
CompoundSesssionMapper(SessionMapper... mappers) |
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 . |
public CompoundSesssionMapper(SessionMapper... mappers)
public CompoundSesssionMapper(java.util.List<SessionMapper> mappers)
public void write(java.lang.String session, java.lang.String flash, org.osgl.http.H.Response response)
SessionMapper
Write serialized session and flash state into response
.
write
in interface SessionMapper
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 responsepublic java.lang.String readSession(org.osgl.http.H.Request request)
SessionMapper
Read the incoming HTTP request and extract serialized session state.
readSession
in interface SessionMapper
request
- the incoming HTTP requestnull
if not session state found in the request using this mapperpublic java.lang.String readFlash(org.osgl.http.H.Request request)
SessionMapper
Read the incoming HTTP request and extract serialized flash state.
readFlash
in interface SessionMapper
request
- the incoming HTTP requestnull
if not flash state found in the request using this mapperCopyright © 2014–2017 ActFramework. All rights reserved.