public static RegistryBuilder<CookieSpecFactory> createDefaultBuilder(final PublicSuffixMatcher publicSuffixMatcher) {
        return RegistryBuilder.<CookieSpecFactory>create()
                .register(StandardCookieSpec.RELAXED, new RFC6265CookieSpecFactory(
                        RFC6265CookieSpecFactory.CompatibilityLevel.RELAXED, publicSuffixMatcher))
                .register(StandardCookieSpec.STRICT, new RFC6265CookieSpecFactory(
                        RFC6265CookieSpecFactory.CompatibilityLevel.STRICT, publicSuffixMatcher))
                .register(StandardCookieSpec.IGNORE, new IgnoreCookieSpecFactory());
    }
Creates a builder containing the default registry entries, using the provided public suffix matcher.
httpclient5/src/main/java/org/apache/hc/client5/http/impl/CookieSpecSupport.java