public class DefaultCurrentStateStore extends Object implements CurrentStateStore
| Constructor and Description |
|---|
DefaultCurrentStateStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all current states
|
H.Flash |
flash()
Get current flash.
|
void |
flash(H.Flash flash)
Store flash as current state.
|
H.Request |
request()
Get current request.
|
void |
request(H.Request req)
Store request as current state.
|
H.Response |
response()
Get current response.
|
void |
response(H.Response resp)
Store response as current state.
|
H.Session |
session()
Get current session.
|
void |
session(H.Session sess)
Store session as current state.
|
public H.Request request()
CurrentStateStoreGet current request.
request in interface CurrentStateStorepublic H.Response response()
CurrentStateStoreGet current response.
response in interface CurrentStateStorepublic H.Session session()
CurrentStateStoreGet current session.
session in interface CurrentStateStorepublic H.Flash flash()
CurrentStateStoreGet current flash.
flash in interface CurrentStateStorepublic void session(H.Session sess)
CurrentStateStoreStore session as current state.
session in interface CurrentStateStoresess - the session objectpublic void request(H.Request req)
CurrentStateStoreStore request as current state.
request in interface CurrentStateStorereq - the request objectpublic void response(H.Response resp)
CurrentStateStoreStore response as current state.
response in interface CurrentStateStoreresp - the response objectpublic void flash(H.Flash flash)
CurrentStateStoreStore flash as current state.
flash in interface CurrentStateStoreflash - the flash objectpublic void clear()
CurrentStateStoreClear all current states
clear in interface CurrentStateStoreCopyright © 2017–2018 OSGL (Open Source General Library). All rights reserved.