Package net.officefloor.web.session.spi
Interface StoreHttpSessionOperation
public interface StoreHttpSessionOperation
Operation to obtain details of storing the
HttpSession within the
HttpSessionStore.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidfailedToStoreSession(Throwable cause) Flags failed to store theHttpSessionwithin theHttpSessionStore.Obtains the attributes of theHttpSession.Obtains the creation time for theHttpSession.Obtains the time to expire theHttpSessionshould it be idle.Obtains the session Id of theHttpSessionto store.voidFlags theHttpSessionwas stored successfully within theHttpSessionStore.
-
Method Details
-
getSessionId
String getSessionId()Obtains the session Id of theHttpSessionto store.- Returns:
- Session Id of the
HttpSessionto store.
-
getCreationTime
Instant getCreationTime()Obtains the creation time for theHttpSession.- Returns:
- Creation time for the
HttpSession.
-
getExpireTime
Instant getExpireTime()Obtains the time to expire theHttpSessionshould it be idle.- Returns:
- Time to expire the
HttpSessionshould it be idle.
-
getAttributes
Map<String,Serializable> getAttributes()Obtains the attributes of theHttpSession.- Returns:
- Attributes of the
HttpSession.
-
sessionStored
void sessionStored()Flags theHttpSessionwas stored successfully within theHttpSessionStore. -
failedToStoreSession
Flags failed to store theHttpSessionwithin theHttpSessionStore.- Parameters:
cause- Cause of the failure.
-