Code example for Cookie

Methods: getVersion

0
        public boolean isSecure() { 
            return cookie.isSecure();
        } 
 
        public int getVersion() { 
            return cookie.getVersion();
        } 
 
        public boolean isExpired(final Date date) {
            return cookie.isExpired(date);
        } 
 
        public void writeExternal(final ObjectOutput out) throws IOException {
            nullMask |= (getName() == null) ? NAME : 0;
            nullMask |= (getValue() == null) ? VALUE : 0;
            nullMask |= (getComment() == null) ? COMMENT : 0;
            nullMask |= (getCommentURL() == null) ? COMMENT_URL : 0;
            nullMask |= (getExpiryDate() == null) ? EXPIRY_DATE : 0;
            nullMask |= (getDomain() == null) ? DOMAIN : 0;
            nullMask |= (getPath() == null) ? PATH : 0;
            nullMask |= (getPorts() == null) ? PORTS : 0;