19 package org.turro.elephant.cookies;
22 import org.turro.collections.KeyValueMap;
23 import org.turro.elephant.context.Application;
24 import org.turro.elephant.context.IConstructor;
25 import org.turro.elephant.direct.AbstractDirectContentCtrl;
26 import org.turro.elephant.direct.DirectContent;
27 import org.turro.elephant.direct.DirectContents;
28 import org.turro.i18n.I_;
29 import org.turro.marker.ElephantMarker;
55 throw new UnsupportedOperationException(
"Not supported yet.");
60 throw new UnsupportedOperationException(
"Not supported yet.");
66 setType((String) type,
"on".equals(map.get(type)));
84 return !decline((String) type) && !allow((String) type);
88 public boolean unset(String type) {
89 return !decline(type) && !allow(type);
96 public boolean allow(String type) {
100 private void setType(String type,
boolean value) {
103 String name = type + (value ?
"_allow" :
"_decline");
static String decryptCookieValue(String name)
static void encryptCookie(String name, String value, String path, int age)
static void deleteCookie(String name, String path)
CookieManager getManager()
String getMessage(String type)
boolean allow(String type)
boolean decline(String type)
void prepareCleanMarker(ElephantMarker em, KeyValueMap kvm)
boolean unset(String type)
String createPost(String type, boolean accept)
void doExecute(IConstructor constructor, KeyValueMap map)
void prepareMarker(ElephantMarker marker)
static CookieManager load()
static String doCreatePOST(String id, String values)
static String get(String msg)