Package org.javlo.service.visitors
Class CookiesService
- java.lang.Object
-
- org.javlo.service.visitors.CookiesService
-
public class CookiesService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCEPTED_STATUS
static int
ALWAYS_STATUS
static String
COOKIES_TYPE_ANAL
static String
COOKIES_TYPE_MEDIA
static String
COOKIES_TYPE_PERSO
static String
COOKIES_TYPE_PUB
static String
COOKIES_TYPE_SOCIAL
static String
COOKIES_TYPE_TECH
static List<String>
COOKIES_TYPES
static int
NOCHOICE_STATUS
static int
NOT_ACCEPTED_STATUS
static int
REFUSED_STATUS
static String
SESSION_KEY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getAccepted()
Map<String,String>
getAcceptedTypes()
List<String>
getCookiesTypes()
static CookiesService
getInstance(ContentContext ctx)
boolean
isDisplayMessage()
void
refresh(ContentContext ctx)
void
reset(ContentContext ctx)
void
setAccepted(Boolean accepted)
void
setAcceptedTypes(List<String> acceptedTypes)
-
-
-
Field Detail
-
COOKIES_TYPE_TECH
public static final String COOKIES_TYPE_TECH
- See Also:
- Constant Field Values
-
COOKIES_TYPE_ANAL
public static final String COOKIES_TYPE_ANAL
- See Also:
- Constant Field Values
-
COOKIES_TYPE_SOCIAL
public static final String COOKIES_TYPE_SOCIAL
- See Also:
- Constant Field Values
-
COOKIES_TYPE_MEDIA
public static final String COOKIES_TYPE_MEDIA
- See Also:
- Constant Field Values
-
COOKIES_TYPE_PERSO
public static final String COOKIES_TYPE_PERSO
- See Also:
- Constant Field Values
-
COOKIES_TYPE_PUB
public static final String COOKIES_TYPE_PUB
- See Also:
- Constant Field Values
-
ALWAYS_STATUS
public static final int ALWAYS_STATUS
- See Also:
- Constant Field Values
-
NOCHOICE_STATUS
public static final int NOCHOICE_STATUS
- See Also:
- Constant Field Values
-
ACCEPTED_STATUS
public static final int ACCEPTED_STATUS
- See Also:
- Constant Field Values
-
NOT_ACCEPTED_STATUS
public static final int NOT_ACCEPTED_STATUS
- See Also:
- Constant Field Values
-
REFUSED_STATUS
public static final int REFUSED_STATUS
- See Also:
- Constant Field Values
-
SESSION_KEY
public static final String SESSION_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static final CookiesService getInstance(ContentContext ctx) throws Exception
- Throws:
Exception
-
refresh
public void refresh(ContentContext ctx)
-
getAccepted
public Boolean getAccepted()
-
setAccepted
public void setAccepted(Boolean accepted)
-
isDisplayMessage
public boolean isDisplayMessage()
-
reset
public void reset(ContentContext ctx)
-
-