Java 类org.apache.http.impl.cookie.IgnoreSpecFactory 实例源码

项目:lams    文件:AbstractHttpClient.java   
protected CookieSpecRegistry createCookieSpecRegistry() {
    CookieSpecRegistry registry = new CookieSpecRegistry();
    registry.register(
            CookiePolicy.BEST_MATCH,
            new BestMatchSpecFactory());
    registry.register(
            CookiePolicy.BROWSER_COMPATIBILITY,
            new BrowserCompatSpecFactory());
    registry.register(
            CookiePolicy.NETSCAPE,
            new NetscapeDraftSpecFactory());
    registry.register(
            CookiePolicy.RFC_2109,
            new RFC2109SpecFactory());
    registry.register(
            CookiePolicy.RFC_2965,
            new RFC2965SpecFactory());
    registry.register(
            CookiePolicy.IGNORE_COOKIES,
            new IgnoreSpecFactory());
    return registry;
}
项目:purecloud-iot    文件:AbstractHttpClient.java   
protected CookieSpecRegistry createCookieSpecRegistry() {
    final CookieSpecRegistry registry = new CookieSpecRegistry();
    registry.register(
            CookieSpecs.DEFAULT,
            new BestMatchSpecFactory());
    registry.register(
            CookiePolicy.BEST_MATCH,
            new BestMatchSpecFactory());
    registry.register(
            CookiePolicy.BROWSER_COMPATIBILITY,
            new BrowserCompatSpecFactory());
    registry.register(
            CookiePolicy.NETSCAPE,
            new NetscapeDraftSpecFactory());
    registry.register(
            CookiePolicy.RFC_2109,
            new RFC2109SpecFactory());
    registry.register(
            CookiePolicy.RFC_2965,
            new RFC2965SpecFactory());
    registry.register(
            CookiePolicy.IGNORE_COOKIES,
            new IgnoreSpecFactory());
    return registry;
}