Package net.officefloor.web.session.spi
Interface RetrieveHttpSessionOperation
-
public interface RetrieveHttpSessionOperation
Operation to obtain details of retrieving aHttpSession
from theHttpSessionStore
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
failedToRetreiveSession(java.lang.Throwable cause)
Flags that failed to retrieve theHttpSession
from theHttpSessionStore
.java.lang.String
getSessionId()
Obtains the session Id of theHttpSession
to retrieve.void
sessionNotAvailable()
Flags that theHttpSession
is not available in theHttpSessionStore
.void
sessionRetrieved(java.time.Instant creationTime, java.time.Instant expireTime, java.util.Map<java.lang.String,java.io.Serializable> attributes)
Flags that theHttpSession
was successfully retrieved from theHttpSessionStore
.
-
-
-
Method Detail
-
getSessionId
java.lang.String getSessionId()
Obtains the session Id of theHttpSession
to retrieve.- Returns:
- Session Id of the
HttpSession
to retrieve.
-
sessionRetrieved
void sessionRetrieved(java.time.Instant creationTime, java.time.Instant expireTime, java.util.Map<java.lang.String,java.io.Serializable> attributes)
Flags that theHttpSession
was successfully retrieved from theHttpSessionStore
.- Parameters:
creationTime
- Time theHttpSession
was created in theHttpSessionStore
.expireTime
- Time to expire theHttpSession
should it be idle.attributes
- Attributes for the retrievedHttpSession
.
-
sessionNotAvailable
void sessionNotAvailable()
Flags that the
HttpSession
is not available in theHttpSessionStore
.Typically this is due to the
HttpSession
timing out and being invalidated.
-
failedToRetreiveSession
void failedToRetreiveSession(java.lang.Throwable cause)
Flags that failed to retrieve theHttpSession
from theHttpSessionStore
.- Parameters:
cause
- Cause of the failure.
-
-