Package net.officefloor.web.session.spi
Interface CreateHttpSessionOperation
-
public interface CreateHttpSessionOperationOperation to obtain details of creating a newHttpSessionwithin theHttpSessionStore.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailedToCreateSession(java.lang.Throwable cause)Flags that failed to create theHttpSessionwithin theHttpSessionStore.java.lang.StringgetSessionId()Obtains the session Id of the newHttpSession.voidsessionCreated(java.time.Instant creationTime, java.time.Instant expireTime, java.util.Map<java.lang.String,java.io.Serializable> attributes)Flags that theHttpSessionwas successfully created within theHttpSessionStore.voidsessionIdCollision()Flags that the session Id is the same as anotherHttpSessionwithin theHttpSessionStore.
-
-
-
Method Detail
-
getSessionId
java.lang.String getSessionId()
Obtains the session Id of the newHttpSession.- Returns:
- Session Id of the new
HttpSession.
-
sessionCreated
void sessionCreated(java.time.Instant creationTime, java.time.Instant expireTime, java.util.Map<java.lang.String,java.io.Serializable> attributes)Flags that theHttpSessionwas successfully created within theHttpSessionStore.- Parameters:
creationTime- Time theHttpSessionwas created within theHttpSessionStore.expireTime- Time to expire theHttpSessionshould it be idle.attributes-Mapto contain theHttpSessionattributes.
-
sessionIdCollision
void sessionIdCollision()
Flags that the session Id is the same as anotherHttpSessionwithin theHttpSessionStore.
-
failedToCreateSession
void failedToCreateSession(java.lang.Throwable cause)
Flags that failed to create theHttpSessionwithin theHttpSessionStore.- Parameters:
cause- Cause of the failure.
-
-