Class DefaultCookieManager

  • All Implemented Interfaces:
    CookieManager

    public class DefaultCookieManager
    extends java.lang.Object
    implements CookieManager
    Cookie manager that stores a cookie in memory.
    Author:
    Middleware Services
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] readCookie()
      Read and return a cookie from storage.
      void writeCookie​(byte[] b)
      Writes a cookie to storage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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