Package net.officefloor.web.session.spi
Interface StoreHttpSessionOperation
-
public interface StoreHttpSessionOperation
Operation to obtain details of storing theHttpSession
within theHttpSessionStore
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
failedToStoreSession(java.lang.Throwable cause)
Flags failed to store theHttpSession
within theHttpSessionStore
.java.util.Map<java.lang.String,java.io.Serializable>
getAttributes()
Obtains the attributes of theHttpSession
.java.time.Instant
getCreationTime()
Obtains the creation time for theHttpSession
.java.time.Instant
getExpireTime()
Obtains the time to expire theHttpSession
should it be idle.java.lang.String
getSessionId()
Obtains the session Id of theHttpSession
to store.void
sessionStored()
Flags theHttpSession
was stored successfully within theHttpSessionStore
.
-
-
-
Method Detail
-
getSessionId
java.lang.String getSessionId()
Obtains the session Id of theHttpSession
to store.- Returns:
- Session Id of the
HttpSession
to 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 theHttpSession
should it be idle.- Returns:
- Time to expire the
HttpSession
should 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 theHttpSession
was stored successfully within theHttpSessionStore
.
-
failedToStoreSession
void failedToStoreSession(java.lang.Throwable cause)
Flags failed to store theHttpSession
within theHttpSessionStore
.- Parameters:
cause
- Cause of the failure.
-
-