HttpResponseWrapper.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / HttpResponseWrapper.cs / 1 / HttpResponseWrapper.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.UI { 
    using System; 
    using System.Collections.Specialized;
    using System.Diagnostics; 
    using System.Web;
    using System.IO;
    using System.Security;
    using System.Security.Permissions; 

    internal sealed class HttpResponseWrapper : IHttpResponse { 
        private HttpResponse _httpResponse; 

        public HttpResponseWrapper(HttpResponse httpResponse) { 
            Debug.Assert(httpResponse != null);
            _httpResponse = httpResponse;
        }
 
        #region IHttpResponse Members
        IHttpCachePolicy IHttpResponse.Cache { 
            get { 
                return new HttpCachePolicyWrapper(_httpResponse.Cache);
            } 
        }

        string IHttpResponse.ContentType {
            set { 
                _httpResponse.ContentType = value;
            } 
        } 

        Stream IHttpResponse.Filter { 
            get {
                return _httpResponse.Filter;
            }
            set { 
                _httpResponse.Filter = value;
            } 
        } 

        TextWriter IHttpResponse.Output { 
            get {
                return _httpResponse.Output;
            }
        } 

        void IHttpResponse.Clear() { 
            _httpResponse.Clear(); 
        }
 
        void IHttpResponse.End() {
            _httpResponse.End();
        }
 
        TextWriter IHttpResponse.SwitchWriter(TextWriter writer) {
            return _httpResponse.SwitchWriter(writer); 
        } 

        void IHttpResponse.Write(string s) { 
            _httpResponse.Write(s);
        }
        #endregion
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK