Class CookieSetting

java.lang.Object
com.facebook.capi.sdk.model.CookieSetting

public class CookieSetting extends Object
Cookie setting class to contains all cookie related information
  • Field Details

    • name

      public String name
      Cookie's name
    • value

      public String value
      Cookie's value
    • domain

      public String domain
      Cookie's domain
    • maxAge

      public int maxAge
      Cookie's TTL
  • Constructor Details

    • CookieSetting

      public CookieSetting(String name, String value, String domain, int maxAge)
      CookieSettings
      Parameters:
      name - name of the cookie
      value - value of the cookie
      domain - domain of the cookie
      maxAge - TTL of the coookie
  • Method Details

    • getName

      public String getName()
      Name of current cookie
      Returns:
      cookie's name
    • getValue

      public String getValue()
      Value of current cookie
      Returns:
      cookie's value
    • getDomain

      public String getDomain()
      Domain that cookie best fit in. The ETLD+1 for current input URL.
      Returns:
      ETLD+1 domain for the url
    • getMaxAge

      public int getMaxAge()
      Max age for the cookie
      Returns:
      The TTL for the cookie