java.lang.Object
com.logicommerce.sdk.models.implementations.CookieImpl
All Implemented Interfaces:
Cookie

public class CookieImpl extends Object implements Cookie

Cookie class.

Since:
1.1.4
Author:
Logicommerce
  • Constructor Details

    • CookieImpl

      public CookieImpl()

      Constructor for CookieImpl.

    • CookieImpl

      public CookieImpl(String name, String value)

      Constructor for CookieImpl.

      Parameters:
      name - a String object
      value - a String object
  • Method Details

    • getValue

      public String getValue()

      Get value of the cookie.

      Specified by:
      getValue in interface Cookie
      Returns:
      a String object
    • setValue

      public void setValue(String value)

      Set value of the cookie.

      Specified by:
      setValue in interface Cookie
      Parameters:
      value - a String object
    • getName

      public String getName()

      Get name value of the cookie.

      Specified by:
      getName in interface Cookie
      Returns:
      a String object
    • setName

      public void setName(String name)

      Set name value of the cookie.

      Specified by:
      setName in interface Cookie
      Parameters:
      name - a String object
    • getTtl

      public int getTtl()

      Get ttl value of the cookie.

      Specified by:
      getTtl in interface Cookie
      Returns:
      a int
    • setTtl

      public void setTtl(int ttl)

      Set ttl value of the cookie.

      Specified by:
      setTtl in interface Cookie
      Parameters:
      ttl - a int
    • setHttpOnly

      public void setHttpOnly(boolean httpOnly)
      Description copied from interface: Cookie

      Set httpOnly value of the cookie.

      Specified by:
      setHttpOnly in interface Cookie
      Parameters:
      httpOnly - a boolean
    • getHttpOnly

      public boolean getHttpOnly()
      Description copied from interface: Cookie

      Get httpOnly value of the cookie.

      Specified by:
      getHttpOnly in interface Cookie
      Returns:
      a boolean
    • getSecure

      public boolean getSecure()
      Description copied from interface: Cookie

      Get secure value of the cookie.

      Specified by:
      getSecure in interface Cookie
      Returns:
      a boolean
    • setSecure

      public void setSecure(boolean secure)
      Description copied from interface: Cookie

      Set secure value of the cookie.

      Specified by:
      setSecure in interface Cookie
      Parameters:
      secure - a boolean