Package net.officefloor.web.session.spi
Interface CreateHttpSessionOperation
-
public interface CreateHttpSessionOperation
Operation to obtain details of creating a newHttpSession
within theHttpSessionStore
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
failedToCreateSession(java.lang.Throwable cause)
Flags that failed to create theHttpSession
within theHttpSessionStore
.java.lang.String
getSessionId()
Obtains the session Id of the newHttpSession
.void
sessionCreated(java.time.Instant creationTime, java.time.Instant expireTime, java.util.Map<java.lang.String,java.io.Serializable> attributes)
Flags that theHttpSession
was successfully created within theHttpSessionStore
.void
sessionIdCollision()
Flags that the session Id is the same as anotherHttpSession
within 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 theHttpSession
was successfully created within theHttpSessionStore
.- Parameters:
creationTime
- Time theHttpSession
was created within theHttpSessionStore
.expireTime
- Time to expire theHttpSession
should it be idle.attributes
-Map
to contain theHttpSession
attributes.
-
sessionIdCollision
void sessionIdCollision()
Flags that the session Id is the same as anotherHttpSession
within theHttpSessionStore
.
-
failedToCreateSession
void failedToCreateSession(java.lang.Throwable cause)
Flags that failed to create theHttpSession
within theHttpSessionStore
.- Parameters:
cause
- Cause of the failure.
-
-