Package com.facebook.capi.sdk.model
Class CookieSetting
java.lang.Object
com.facebook.capi.sdk.model.CookieSetting
Cookie setting class to contains all cookie related information
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCookieSetting(String name, String value, String domain, int maxAge) CookieSettings -
Method Summary
-
Field Details
-
name
Cookie's name -
value
Cookie's value -
domain
Cookie's domain -
maxAge
public int maxAgeCookie's TTL
-
-
Constructor Details
-
CookieSetting
CookieSettings- Parameters:
name- name of the cookievalue- value of the cookiedomain- domain of the cookiemaxAge- TTL of the coookie
-
-
Method Details
-
getName
Name of current cookie- Returns:
- cookie's name
-
getValue
Value of current cookie- Returns:
- cookie's value
-
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
-