Package net.officefloor.web.session.spi
Interface StoreHttpSessionOperation
-
public interface StoreHttpSessionOperationOperation to obtain details of storing theHttpSessionwithin theHttpSessionStore.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailedToStoreSession(java.lang.Throwable cause)Flags failed to store theHttpSessionwithin theHttpSessionStore.java.util.Map<java.lang.String,java.io.Serializable>getAttributes()Obtains the attributes of theHttpSession.java.time.InstantgetCreationTime()Obtains the creation time for theHttpSession.java.time.InstantgetExpireTime()Obtains the time to expire theHttpSessionshould it be idle.java.lang.StringgetSessionId()Obtains the session Id of theHttpSessionto store.voidsessionStored()Flags theHttpSessionwas stored successfully within theHttpSessionStore.
-
-
-
Method Detail
-
getSessionId
java.lang.String getSessionId()
Obtains the session Id of theHttpSessionto store.- Returns:
- Session Id of the
HttpSessionto store.
-
getCreationTime
java.time.Instant getCreationTime()
Obtains the creation time for theHttpSession.- Returns:
- Creation time for the
HttpSession.
-
getExpireTime
java.time.Instant getExpireTime()
Obtains the time to expire theHttpSessionshould it be idle.- Returns:
- Time to expire the
HttpSessionshould it be idle.
-
getAttributes
java.util.Map<java.lang.String,java.io.Serializable> getAttributes()
Obtains the attributes of theHttpSession.- Returns:
- Attributes of the
HttpSession.
-
sessionStored
void sessionStored()
Flags theHttpSessionwas stored successfully within theHttpSessionStore.
-
failedToStoreSession
void failedToStoreSession(java.lang.Throwable cause)
Flags failed to store theHttpSessionwithin theHttpSessionStore.- Parameters:
cause- Cause of the failure.
-
-