本文整理汇总了Java中org.apache.wicket.util.cookies.CookieUtils类的典型用法代码示例。如果您正苦于以下问题:Java CookieUtils类的具体用法?Java CookieUtils怎么用?Java CookieUtils使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CookieUtils类属于org.apache.wicket.util.cookies包,在下文中一共展示了CookieUtils类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SyncopeEnduserSession
import org.apache.wicket.util.cookies.CookieUtils; //导入依赖的package包/类
public SyncopeEnduserSession(final Request request) {
super(request);
// define cookie utility to manage application cookies
cookieUtils = new CookieUtils();
anonymousClient = SyncopeEnduserApplication.get().getClientFactory().
create(new AnonymousAuthenticationHandler(
SyncopeEnduserApplication.get().getAnonymousUser(),
SyncopeEnduserApplication.get().getAnonymousKey()));
platformInfo = anonymousClient.getService(SyncopeService.class).platform();
datePlainSchemas = anonymousClient.getService(SchemaService.class).
list(new SchemaQuery.Builder().type(SchemaType.PLAIN).build());
datePlainSchemas.removeAll(datePlainSchemas.stream().
filter(object -> object.getType() != AttrSchemaType.Date).collect(Collectors.toSet()));
}
示例2: setTabCookie
import org.apache.wicket.util.cookies.CookieUtils; //导入依赖的package包/类
/**
* Set the cookie that stores the current tab index.
*
* @param tabIndex the current tab index.
*/
protected void setTabCookie(final int tabIndex) {
final CookieDefaults defaults = new CookieDefaults();
defaults.setMaxAge(-1);
final CookieUtils utils = new CookieUtils(defaults);
utils.save(ProfileConstants.TAB_COOKIE, String.valueOf(tabIndex));
}
示例3: getCookieUtils
import org.apache.wicket.util.cookies.CookieUtils; //导入依赖的package包/类
public CookieUtils getCookieUtils() {
return cookieUtils;
}