Record Class AbstractSessionManager.RequestedSession
java.lang.Object
java.lang.Record
org.eclipse.jetty.session.AbstractSessionManager.RequestedSession
- Enclosing class:
AbstractSessionManager
public static record AbstractSessionManager.RequestedSession(ManagedSession session, String sessionId, boolean sessionIdFromCookie)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequestedSession(ManagedSession session, String sessionId, boolean sessionIdFromCookie) Creates an instance of aRequestedSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.session()Returns the value of thesessionrecord component.Returns the value of thesessionIdrecord component.booleanReturns the value of thesessionIdFromCookierecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestedSession
Creates an instance of aRequestedSessionrecord class.- Parameters:
session- the value for thesessionrecord componentsessionId- the value for thesessionIdrecord componentsessionIdFromCookie- the value for thesessionIdFromCookierecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
sessionIdFromCookie
public boolean sessionIdFromCookie()Returns the value of thesessionIdFromCookierecord component.- Returns:
- the value of the
sessionIdFromCookierecord component
-