Exemplo n.º 1
0
 @Override
 public void validate(final Cookie cookie, final CookieOrigin origin)
     throws MalformedCookieException {
   Args.notNull(cookie, "Cookie");
   Args.notNull(origin, "Cookie origin");
   super.validate(cookie, adjustEffectiveHost(origin));
 }
Exemplo n.º 2
0
 @Override
 public void validate(final Cookie cookie, CookieOrigin origin) throws MalformedCookieException {
   if (cookie == null) {
     throw new IllegalArgumentException("Cookie may not be null");
   }
   if (origin == null) {
     throw new IllegalArgumentException("Cookie origin may not be null");
   }
   origin = adjustEffectiveHost(origin);
   super.validate(cookie, origin);
 }