Package | Description |
---|---|
org.osgl.http | |
org.osgl.http.util |
Modifier and Type | Method and Description |
---|---|
static H.Flash |
H.Flash.current()
Return a flash instance of the current execution context, For example from a
ThreadLocal |
H.Flash |
H.Flash.discard()
Discard the whole output buffer of the flash but the data buffer is remain untouched.
|
H.Flash |
H.Flash.discard(String key)
Discard a data from the output buffer of the flash but the data buffer is remain untouched.
|
H.Flash |
H.Flash.error(String message)
Add an “error” message to the flash scope
|
H.Flash |
H.Flash.error(String message,
Object... args)
Add an “error” message to the flash scope, with optional format arguments
|
H.Flash |
CurrentStateStore.flash()
Get current flash.
|
H.Flash |
H.Flash.keep()
Keep all data that has been
put into the flash for one time. |
H.Flash |
H.Flash.keep(String key)
Keep a data that has been
put into the flash for one time. |
H.Flash |
H.Flash.now(String key,
String value)
Add an attribute to the flash’s current scope.
|
H.Flash |
H.Flash.put(String key,
Object value)
Add an attribute to the flash scope.
|
H.Flash |
H.Flash.put(String key,
String value)
Add an attribute to the flash scope.
|
static H.Flash |
H.Flash.resolve(H.Cookie flashCookie)
Resolve a Flash instance from a cookie.
|
H.Flash |
H.Flash.success(String message)
Add a “success” message to the flash scope
|
H.Flash |
H.Flash.success(String message,
Object... args)
Add a “success” message to the flash scope, with optional format arguments
|
Modifier and Type | Method and Description |
---|---|
static void |
H.Flash.current(H.Flash flash)
Set a flash instance into the current execution context, for example into a
ThreadLocal |
void |
CurrentStateStore.flash(H.Flash flash)
Store flash as current state.
|
Modifier and Type | Method and Description |
---|---|
H.Flash |
DefaultCurrentStateStore.flash() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCurrentStateStore.flash(H.Flash flash) |
Copyright © 2017–2020 OSGL (Open Source General Library). All rights reserved.