Code example for Cookie

Methods: getVersion

0
            throw new IllegalArgumentException("Cookie may not be null");
        } 
        if (origin == null) {
            throw new IllegalArgumentException("Cookie origin may not be null");
        } 
        if (cookie.getVersion() > 0) {
            getStrict().validate(cookie, origin);
        } else { 
            getCompat().validate(cookie, origin);
        } 
    } 
 
    public boolean match(final Cookie cookie, final CookieOrigin origin) {
        if (cookie == null) {
            throw new IllegalArgumentException("Cookie may not be null");
        } 
        if (origin == null) {
            throw new IllegalArgumentException("Cookie origin may not be null");
        } 
        if (cookie.getVersion() > 0) {
            return getStrict().match(cookie, origin);