Remove excessive shortcut key matching in ToolStrip
[mono.git] / mcs / class / System.Web.Abstractions / System.Web / HttpResponseWrapper.cs
1 //
2 // HttpResponseWrapper.cs
3 //
4 // Author:
5 //      Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2008 Novell Inc. http://novell.com
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 using System;
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.Collections.Specialized;
34 using System.Globalization;
35 using System.IO;
36 using System.Runtime.CompilerServices;
37 using System.Runtime.Serialization;
38 using System.Security.Permissions;
39 using System.Security.Principal;
40 using System.Text;
41 using System.Web.Caching;
42
43 namespace System.Web
44 {
45 #if NET_4_0
46         [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
47 #endif
48         [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
49         [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
50         public class HttpResponseWrapper : HttpResponseBase
51         {
52                 HttpResponse w;
53
54                 public HttpResponseWrapper (HttpResponse httpResponse)
55                 {
56                         if (httpResponse == null)
57                                 throw new ArgumentNullException ("httpResponse");
58                         w = httpResponse;
59                 }
60
61                 public override bool Buffer {
62                         get { return w.Buffer; }
63                         set { w.Buffer = value; }
64                 }
65
66                 public override bool BufferOutput {
67                         get { return w.BufferOutput; }
68                         set { w.BufferOutput = value; }
69                 }
70
71                 public override HttpCachePolicyBase Cache {
72                         get { return new HttpCachePolicyWrapper (w.Cache); }
73                 }
74
75                 public override string CacheControl {
76                         get { return w.CacheControl; }
77                         set { w.CacheControl = value; }
78                 }
79
80                 public override string Charset {
81                         get { return w.Charset; }
82                         set { w.Charset = value; }
83                 }
84
85                 public override Encoding ContentEncoding {
86                         get { return w.ContentEncoding; }
87                         set { w.ContentEncoding = value; }
88                 }
89
90                 public override string ContentType {
91                         get { return w.ContentType; }
92                         set { w.ContentType = value; }
93                 }
94
95                 public override HttpCookieCollection Cookies {
96                         get { return w.Cookies; }
97                 }
98
99                 public override int Expires {
100                         get { return w.Expires; }
101                         set { w.Expires = value; }
102                 }
103
104                 public override DateTime ExpiresAbsolute {
105                         get { return w.ExpiresAbsolute; }
106                         set { w.ExpiresAbsolute = value; }
107                 }
108
109                 public override Stream Filter {
110                         get { return w.Filter; }
111                         set { w.Filter = value; }
112                 }
113
114                 public override Encoding HeaderEncoding {
115                         get { return w.HeaderEncoding; }
116                         set { w.HeaderEncoding = value; }
117                 }
118
119                 public override NameValueCollection Headers {
120                         get { return w.Headers; }
121                 }
122
123                 public override bool IsClientConnected {
124                         get { return w.IsClientConnected; }
125                 }
126
127                 public override bool IsRequestBeingRedirected {
128                         get { return w.IsRequestBeingRedirected; }
129                 }
130
131                 public override TextWriter Output {
132                         get { return w.Output; }
133 #if NET_4_0
134                         set { w.Output = value; }
135 #endif
136                 }
137
138                 public override Stream OutputStream {
139                         get { return w.OutputStream; }
140                 }
141
142                 public override string RedirectLocation {
143                         get { return w.RedirectLocation; }
144                         set { w.RedirectLocation = value; }
145                 }
146
147                 public override string Status {
148                         get { return w.Status; }
149                         set { w.Status = value; }
150                 }
151
152                 public override int StatusCode {
153                         get { return w.StatusCode; }
154                         set { w.StatusCode = value; }
155                 }
156
157                 public override string StatusDescription {
158                         get { return w.StatusDescription; }
159                         set { w.StatusDescription = value; }
160                 }
161
162                 public override int SubStatusCode {
163                         get { return w.SubStatusCode; }
164                         set { w.SubStatusCode = value; }
165                 }
166
167                 public override bool SuppressContent {
168                         get { return w.SuppressContent; }
169                         set { w.SuppressContent = value; }
170                 }
171
172                 public override bool TrySkipIisCustomErrors {
173                         get { return w.TrySkipIisCustomErrors; }
174                         set { w.TrySkipIisCustomErrors = value; }
175                 }
176
177                 public override void AddCacheDependency (params CacheDependency [] dependencies)
178                 {
179                         w.AddCacheDependency (dependencies);
180                 }
181
182                 public override void AddCacheItemDependencies (ArrayList cacheKeys)
183                 {
184                         w.AddCacheItemDependencies (cacheKeys);
185                 }
186
187                 public override void AddCacheItemDependencies (string [] cacheKeys)
188                 {
189                         w.AddCacheItemDependencies (cacheKeys);
190                 }
191
192                 public override void AddCacheItemDependency (string cacheKey)
193                 {
194                         w.AddCacheItemDependency (cacheKey);
195                 }
196
197                 public override void AddFileDependencies (ArrayList filenames)
198                 {
199                         w.AddFileDependencies (filenames);
200                 }
201
202                 public override void AddFileDependencies (string [] filenames)
203                 {
204                         w.AddFileDependencies (filenames);
205                 }
206
207                 public override void AddFileDependency (string filename)
208                 {
209                         w.AddFileDependency (filename);
210                 }
211
212                 public override void AddHeader (string name, string value)
213                 {
214                         w.AddHeader (name, value);
215                 }
216
217                 public override void AppendCookie (HttpCookie cookie)
218                 {
219                         w.AppendCookie (cookie);
220                 }
221
222                 public override void AppendHeader (string name, string value)
223                 {
224                         w.AppendHeader (name, value);
225                 }
226
227                 public override void AppendToLog (string param)
228                 {
229                         w.AppendToLog (param);
230                 }
231
232                 public override string ApplyAppPathModifier (string overridePath)
233                 {
234                         return w.ApplyAppPathModifier (overridePath);
235                 }
236
237                 public override void BinaryWrite (byte [] buffer)
238                 {
239                         w.BinaryWrite (buffer);
240                 }
241
242                 public override void Clear ()
243                 {
244                         w.Clear ();
245                 }
246
247                 public override void ClearContent ()
248                 {
249                         w.ClearContent ();
250                 }
251
252                 public override void ClearHeaders ()
253                 {
254                         w.ClearHeaders ();
255                 }
256
257                 public override void Close ()
258                 {
259                         w.Close ();
260                 }
261
262                 public override void DisableKernelCache ()
263                 {
264                          w.DisableKernelCache ();
265                 }
266
267                 public override void End ()
268                 {
269                         w.End ();
270                 }
271
272                 public override void Flush ()
273                 {
274                         w.Flush ();
275                 }
276
277                 public override void Pics (string value)
278                 {
279                         w.Pics (value);
280                 }
281
282                 public override void Redirect (string url)
283                 {
284                         w.Redirect (url);
285                 }
286
287                 public override void Redirect (string url, bool endResponse)
288                 {
289                         w.Redirect (url, endResponse);
290                 }
291 #if NET_4_0
292                 public override void RedirectPermanent (string url)
293                 {
294                         w.RedirectPermanent (url);
295                 }
296
297                 public override void RedirectPermanent (string url, bool endResponse)
298                 {
299                         w.RedirectPermanent (url, endResponse);
300                 }
301
302                 public override void RemoveOutputCacheItem (string path, string providerName)
303                 {
304                         HttpResponse.RemoveOutputCacheItem (path, providerName);
305                 }
306 #endif
307                 public override void RemoveOutputCacheItem (string path)
308                 {
309                          HttpResponse.RemoveOutputCacheItem (path);
310                 }
311
312                 public override void SetCookie (HttpCookie cookie)
313                 {
314                         w.SetCookie (cookie);
315                 }
316
317                 public override void TransmitFile (string filename)
318                 {
319                         w.TransmitFile (filename);
320                 }
321
322                 public override void TransmitFile (string filename, long offset, long length)
323                 {
324                         w.TransmitFile (filename, offset, length);
325                 }
326
327                 public override void Write (char ch)
328                 {
329                         w.Write (ch);
330                 }
331
332                 public override void Write (object obj)
333                 {
334                         w.Write (obj);
335                 }
336
337                 public override void Write (string s)
338                 {
339                         w.Write (s);
340                 }
341
342                 public override void Write (char [] buffer, int index, int count)
343                 {
344                         w.Write (buffer, index, count);
345                 }
346
347                 public override void WriteFile (string filename)
348                 {
349                         w.WriteFile (filename);
350                 }
351
352                 public override void WriteFile (string filename, bool readIntoMemory)
353                 {
354                         w.WriteFile (filename, readIntoMemory);
355                 }
356
357                 public override void WriteFile (IntPtr fileHandle, long offset, long size)
358                 {
359                         w.WriteFile (fileHandle, offset, size);
360                 }
361
362                 public override void WriteFile (string filename, long offset, long size)
363                 {
364                         w.WriteFile (filename, offset, size);
365                 }
366
367                 public override void WriteSubstitution (HttpResponseSubstitutionCallback callback)
368                 {
369                         w.WriteSubstitution (callback);
370                 }
371         }
372 }