@Override public String getAttributeName() { return handler.getAttributeName(); }
@Override public void parse(final SetCookie cookie, final String value) throws MalformedCookieException { handler.parse(cookie, value); }
@Override public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException { handler.validate(cookie, origin); }
@Override public boolean match(Cookie cookie, CookieOrigin origin) { if (cookie.getDomain() == null || cookie.getDomain().isEmpty()) { return true; } return parent.match(cookie, origin); }
/** * Never matches if the cookie's domain is from the blacklist. */ @Override public boolean match(final Cookie cookie, final CookieOrigin origin) { final String domain = cookie.getDomain(); if (!domain.equalsIgnoreCase("localhost") && publicSuffixMatcher.matches(domain)) { return false; } else { return handler.match(cookie, origin); } }
@Override public String getAttributeName() { return handler.getAttributeName(); }
/** * Never matches if the cookie's domain is from the blacklist. */ @Override public boolean match(final Cookie cookie, final CookieOrigin origin) { final String host = cookie.getDomain(); final int i = host.indexOf('.'); if (i >= 0) { final String domain = host.substring(i); if (!this.localDomainMap.containsKey(domain)) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } else { if (!host.equalsIgnoreCase(origin.getHost())) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } return handler.match(cookie, origin); }
@Override public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException { parent.validate(cookie, origin); }
@Override public void parse(final SetCookie cookie, final String value) throws MalformedCookieException { handler.parse(cookie, value); }
@Override public String getAttributeName() { return handler.getAttributeName(); }
/** * Never matches if the cookie's domain is from the blacklist. */ @Override public boolean match(final Cookie cookie, final CookieOrigin origin) { final String host = cookie.getDomain(); final int i = host.indexOf('.'); if (i >= 0) { final String domain = host.substring(i); if (!this.localDomainMap.containsKey(domain)) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } else { if (!host.equalsIgnoreCase(origin.getHost())) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } return handler.match(cookie, origin); }
@Override public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException { handler.validate(cookie, origin); }
@Override public void parse(final SetCookie cookie, final String value) throws MalformedCookieException { handler.parse(cookie, value); }
@Override public String getAttributeName() { return parent.getAttributeName(); } }
/** * Never matches if the cookie's domain is from the blacklist. */ @Override public boolean match(final Cookie cookie, final CookieOrigin origin) { final String host = cookie.getDomain(); final int i = host.indexOf('.'); if (i >= 0) { final String domain = host.substring(i); if (!this.localDomainMap.containsKey(domain)) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } else { if (!host.equalsIgnoreCase(origin.getHost())) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } return handler.match(cookie, origin); }
@Override public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException { handler.validate(cookie, origin); }
@Override public void parse(final SetCookie cookie, final String value) throws MalformedCookieException { handler.parse(cookie, value); }
@Override public String getAttributeName() { return handler.getAttributeName(); }
/** * Never matches if the cookie's domain is from the blacklist. */ @Override public boolean match(final Cookie cookie, final CookieOrigin origin) { final String host = cookie.getDomain(); final int i = host.indexOf('.'); if (i >= 0) { final String domain = host.substring(i); if (!this.localDomainMap.containsKey(domain)) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } else { if (!host.equalsIgnoreCase(origin.getHost())) { if (this.publicSuffixMatcher.matches(host)) { return false; } } } return handler.match(cookie, origin); }
@Override public void validate(final Cookie cookie, final CookieOrigin origin) throws MalformedCookieException { handler.validate(cookie, origin); }