java.lang.Object
com.logicommerce.sdk.models.implementations.CookieImpl
- All Implemented Interfaces:
Cookie
Cookie class.
- Since:
- 1.1.4
- Author:
- Logicommerce
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for CookieImpl.CookieImpl(String name, String value) Constructor for CookieImpl. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet httpOnly value of the cookie.getName()Get name value of the cookie.booleanGet secure value of the cookie.intgetTtl()Get ttl value of the cookie.getValue()Get value of the cookie.voidsetHttpOnly(boolean httpOnly) Set httpOnly value of the cookie.voidSet name value of the cookie.voidsetSecure(boolean secure) Set secure value of the cookie.voidsetTtl(int ttl) Set ttl value of the cookie.voidSet value of the cookie.
-
Constructor Details
-
Method Details
-
getValue
Get value of the cookie.
-
setValue
Set value of the cookie.
-
getName
Get name value of the cookie.
-
setName
Set name value of the cookie.
-
getTtl
public int getTtl()Get ttl value of the cookie.
-
setTtl
public void setTtl(int ttl) Set ttl value of the cookie.
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) Description copied from interface:CookieSet httpOnly value of the cookie.
- Specified by:
setHttpOnlyin interfaceCookie- Parameters:
httpOnly- a boolean
-
getHttpOnly
public boolean getHttpOnly()Description copied from interface:CookieGet httpOnly value of the cookie.
- Specified by:
getHttpOnlyin interfaceCookie- Returns:
- a boolean
-
getSecure
public boolean getSecure()Description copied from interface:CookieGet secure value of the cookie.
-
setSecure
public void setSecure(boolean secure) Description copied from interface:CookieSet secure value of the cookie.
-