All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.javadoc.org.spincast.plugins.session.SpincastSession.html Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version






SpincastSession (org.spincast:spincast-framework 1.0.0 API)












org.spincast.plugins.session

Interface SpincastSession

  • All Known Implementing Classes:
    SpincastSessionDefault


    public interface SpincastSession
    The object representing the Session of a visitor.
    • Method Detail

      • getId

        String getId()
        The unique id of this session.
      • isNew

        boolean isNew()
        Returns true if the session has been created in the current request.
      • getAttributes

        JsonObject getAttributes()
        Returns a mutable JsonObject representing the attributes of the session. You can use this object to get/retrieve/delete attributes.
      • getCreationDate

        Instant getCreationDate()
        The Instant at which the session was created.
      • getModificationDate

        Instant getModificationDate()
        The Instant at which the session was modified for the last time.
      • isDirty

        boolean isDirty()
        Was the session modified since it was loaded?
      • setDirty

        void setDirty()
        This allows you to flag a session as being dirty, even if its attributes don't change. This will force the session to be saved in the database.
      • invalidate

        void invalidate()
        Sets the session as "not valid anymore".
      • isInvalidated

        boolean isInvalidated()
        Has the session been invalidated?

Copyright © 2019. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy