Package net.officefloor.web.session.spi
Interface CreateHttpSessionOperation
public interface CreateHttpSessionOperation
Operation to obtain details of creating a new
HttpSession within the
HttpSessionStore.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidfailedToCreateSession(Throwable cause) Flags that failed to create theHttpSessionwithin theHttpSessionStore.Obtains the session Id of the newHttpSession.voidsessionCreated(Instant creationTime, Instant expireTime, Map<String, Serializable> attributes) Flags that theHttpSessionwas successfully created within theHttpSessionStore.voidFlags that the session Id is the same as anotherHttpSessionwithin theHttpSessionStore.
-
Method Details
-
getSessionId
String getSessionId()Obtains the session Id of the newHttpSession.- Returns:
- Session Id of the new
HttpSession.
-
sessionCreated
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
Flags that failed to create theHttpSessionwithin theHttpSessionStore.- Parameters:
cause- Cause of the failure.
-