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