Package org.mycore.common
Class MCRSessionResolver
java.lang.Object
org.mycore.common.MCRSessionResolver
- All Implemented Interfaces:
jakarta.servlet.http.HttpSessionBindingListener
,Serializable
,EventListener
public final class MCRSessionResolver
extends Object
implements Serializable, jakarta.servlet.http.HttpSessionBindingListener
This Class will be stored in the a
HttpSession
and can be used to resolve the
MCRSession
. We can not store MCRSession
directly in the HttpSession
because values need to be Serializable
.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
Tries to resolve theMCRSession
throught theMCRSessionMgr
toString()
void
valueBound
(jakarta.servlet.http.HttpSessionBindingEvent hsbe) void
valueUnbound
(jakarta.servlet.http.HttpSessionBindingEvent hsbe)
-
Constructor Details
-
MCRSessionResolver
-
-
Method Details
-
getSessionID
-
resolveSession
Tries to resolve theMCRSession
throught theMCRSessionMgr
- Returns:
- if is already closed it will return a
Optional.empty()
-
valueBound
public void valueBound(jakarta.servlet.http.HttpSessionBindingEvent hsbe) - Specified by:
valueBound
in interfacejakarta.servlet.http.HttpSessionBindingListener
-
valueUnbound
public void valueUnbound(jakarta.servlet.http.HttpSessionBindingEvent hsbe) - Specified by:
valueUnbound
in interfacejakarta.servlet.http.HttpSessionBindingListener
-
equals
-
hashCode
public int hashCode() -
toString
-