Class IdCookieAccessor


  • @Singleton
    public class IdCookieAccessor
    extends java.lang.Object
    This class offers a simple interface to extract, log and discard JATOS ID cookies.

    Internally this class accesses ID cookies in the HTTP Request or Response. It stores the extracted IdCookieModel in a IdCookieCollection. Additionally, it puts the IdCookieCollection in the RequestScope for easier retrieval in subsequent calls within the same Request.

    Each browser can run up to certain limit (defined in jatos.conf) studies at the same time. This means that there is the same number of ID cookies stored in the browser as studies are currently running (although part of them might be abandoned).

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void discard​(long studyResultId)
      Discards the ID cookie that corresponds to the given study result ID.
      protected IdCookieCollection extract()
      Returns the IdCookieCollection containing all ID cookies of this Request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait