public class Flash extends Object
| Constructor and Description |
|---|
Flash() |
Flash(Map<String,String> values) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key)
Retrieves a specific value from the flash
|
Map<String,String> |
getValues() |
boolean |
hasContent() |
boolean |
isDiscard() |
void |
put(String key,
String value)
Adds a value with a specific key to the flash overwriting an
existing value
|
void |
setDiscard(boolean discard) |
void |
setError(String value)
Sets a specific error message available with
the key 'error'
|
void |
setSuccess(String value)
Sets a specific success message available with
the key 'success'
|
void |
setWarning(String value)
Sets a specific warning message available with
the key 'warning'
|
public void setError(String value)
value - The messagepublic void setWarning(String value)
value - The messagepublic void setSuccess(String value)
value - The messagepublic void put(String key, String value)
key - The keyvalue - The valuepublic String get(String key)
key - The keypublic boolean isDiscard()
public void setDiscard(boolean discard)
public boolean hasContent()
Copyright © 2016. All rights reserved.