コード例 #1
0
ファイル: Cookie.cs プロジェクト: patricknharris/njetty
        /// <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;
        }
コード例 #2
0
 /// <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);
 }