Package org.javlo.service.visitors
Class VisitorsMessageService
- java.lang.Object
-
- org.javlo.service.visitors.VisitorsMessageService
-
public class VisitorsMessageService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringSESSION_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VisitorsMessageServicegetInstance(javax.servlet.http.HttpSession session)booleanisAlReadyDisplayed(String key)check if a message was displayed to the visitor.voidmarkAsDisplayed(String key)mark a message as displayed to the visitors.
-
-
-
Field Detail
-
SESSION_KEY
public static final String SESSION_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static final VisitorsMessageService getInstance(javax.servlet.http.HttpSession session)
-
markAsDisplayed
public void markAsDisplayed(String key)
mark a message as displayed to the visitors.- Parameters:
key-
-
isAlReadyDisplayed
public boolean isAlReadyDisplayed(String key)
check if a message was displayed to the visitor.- Parameters:
key- the key of the message- Returns:
-
-