public.javadoc.org.spincast.core.flash.FlashMessagesHolder.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
FlashMessagesHolder (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.flash
Interface FlashMessagesHolder
-
- All Known Implementing Classes:
- FlashMessagesHolderDefault
public interface FlashMessagesHolder
Currently used to save the Flash Messages between the time
a page sets one, and the time the next page displays it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
FlashMessage
getFlashMessage(String id,
boolean removeIt)
Gets a Flash Message from its id.
String
saveFlashMessage(FlashMessage flashMessage)
Saves a Flash Message.
-
-
Method Detail
-
saveFlashMessage
String saveFlashMessage(FlashMessage flashMessage)
Saves a Flash Message.
- Returns:
- a generated and unique ID for the Flash Message.
-
getFlashMessage
FlashMessage getFlashMessage(String id,
boolean removeIt)
Gets a Flash Message from its id.
- Parameters:
removeIt
- if true
, the Flash Message is
removed from the holder.
Copyright © 2019. All rights reserved.