示例#1
0
        /// <summary>
        /// returns a copy of this cookie
        /// </summary>
        /// <returns></returns>
        public object Clone()
        {
            Cookie clone = new Cookie(this.name, this.value);
            clone.name = this.name;
            clone.value = this.value;

            clone.comment = this.comment;
            clone.domain = this.domain;
            clone.maxAge = this.maxAge;
            clone.path = this.path;
            clone.secure = this.secure;
            clone.version = this.version;
            clone.httpOnly = this.httpOnly;

            return clone;
        }
 /// <summary>
 /// The default behavior of this method is to call AddCookie(Cookie cookie)
 /// on the wrapped response object.
 /// </summary>
 /// <param name="cookie"></param>
 public void AddCookie(Cookie cookie)
 {
     HttpServletResponse.AddCookie(cookie);
 }