Class DefaultCookieManager

  • All Implemented Interfaces:
    CookieManager

    public class DefaultCookieManager
    extends Object
    implements CookieManager
    Cookie manager that stores a cookie in memory.
    • Field Detail

      • cookie

        private byte[] cookie
        Control cookie.
    • Constructor Detail

      • DefaultCookieManager

        public DefaultCookieManager()
        Creates a new default cookie manager.
      • DefaultCookieManager

        public DefaultCookieManager​(byte[] b)
        Creates a new default cookie manager.
        Parameters:
        b - control cookie
    • Method Detail

      • readCookie

        public byte[] readCookie()
        Description copied from interface: CookieManager
        Read and return a cookie from storage.
        Specified by:
        readCookie in interface CookieManager
        Returns:
        cookie read from storage
      • writeCookie

        public void writeCookie​(byte[] b)
        Description copied from interface: CookieManager
        Writes a cookie to storage.
        Specified by:
        writeCookie in interface CookieManager
        Parameters:
        b - to write