Package org.eclipse.jetty.session
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
ConstructorDescriptionRequestedSession
(ManagedSession session, String sessionId, boolean sessionIdFromCookie) Creates an instance of aRequestedSession
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.session()
Returns the value of thesession
record component.Returns the value of thesessionId
record component.boolean
Returns the value of thesessionIdFromCookie
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RequestedSession
Creates an instance of aRequestedSession
record class.- Parameters:
session
- the value for thesession
record componentsessionId
- the value for thesessionId
record componentsessionIdFromCookie
- the value for thesessionIdFromCookie
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
session
Returns the value of thesession
record component.- Returns:
- the value of the
session
record component
-
sessionId
Returns the value of thesessionId
record component.- Returns:
- the value of the
sessionId
record component
-
sessionIdFromCookie
public boolean sessionIdFromCookie()Returns the value of thesessionIdFromCookie
record component.- Returns:
- the value of the
sessionIdFromCookie
record component
-