当前位置: 首页>>代码示例>>Java>>正文


Java CookieUtils类代码示例

本文整理汇总了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()));
}
 
开发者ID:apache,项目名称:syncope,代码行数:17,代码来源:SyncopeEnduserSession.java

示例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));
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:14,代码来源:BasePage.java

示例3: getCookieUtils

import org.apache.wicket.util.cookies.CookieUtils; //导入依赖的package包/类
public CookieUtils getCookieUtils() {
    return cookieUtils;
}
 
开发者ID:apache,项目名称:syncope,代码行数:4,代码来源:SyncopeEnduserSession.java


注:本文中的org.apache.wicket.util.cookies.CookieUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。