2bf8ebd2f21cab505e43be196eec8eef63716be5
[mono.git] / mcs / class / System.Web.Abstractions / System.Web / HttpResponseBase.cs
1 //
2 // HttpResponseBase.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 using System.Threading;
43
44 #if NET_4_0
45 using System.Web.Routing;
46 #endif
47
48 namespace System.Web
49 {
50 #if NET_4_0
51         [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
52 #endif
53         [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
54         [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
55         public abstract class HttpResponseBase
56         {
57                 void NotImplemented ()
58                 {
59                         throw new NotImplementedException ();
60                 }
61
62
63                 public virtual bool Buffer { get { NotImplemented (); return false; } set { NotImplemented (); } }
64
65                 public virtual bool BufferOutput { get { NotImplemented (); return false; } set { NotImplemented (); } }
66
67                 public virtual HttpCachePolicyBase Cache { get { NotImplemented (); return null; } }
68
69                 public virtual string CacheControl { get { NotImplemented (); return null; } set { NotImplemented (); } }
70
71                 public virtual string Charset { get { NotImplemented (); return null; } set { NotImplemented (); } }
72
73 #if NET_4_5
74                 public virtual CancellationToken ClientDisconnectedToken { get { NotImplemented (); return CancellationToken.None; } }
75 #endif
76
77                 public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
78
79                 public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
80
81                 public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
82
83                 public virtual int Expires { get { NotImplemented (); return 0; } set { NotImplemented (); } }
84
85                 public virtual DateTime ExpiresAbsolute { get { NotImplemented (); return DateTime.MinValue; } set { NotImplemented (); } }
86
87                 public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
88
89                 public virtual Encoding HeaderEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
90
91                 public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
92
93                 public virtual bool IsClientConnected { get { NotImplemented (); return false; } }
94
95                 public virtual bool IsRequestBeingRedirected { get { NotImplemented (); return false; } }
96
97                 public virtual TextWriter Output { get { NotImplemented (); return null; }  set { NotImplemented (); } }
98
99                 public virtual Stream OutputStream { get { NotImplemented (); return null; } }
100
101                 public virtual string RedirectLocation { get { NotImplemented (); return null; } set { NotImplemented (); } }
102
103                 public virtual string Status { get { NotImplemented (); return null; } set { NotImplemented (); } }
104
105                 public virtual int StatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
106
107                 public virtual string StatusDescription { get { NotImplemented (); return null; } set { NotImplemented (); } }
108
109                 public virtual int SubStatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
110
111                 public virtual bool SuppressContent { get { NotImplemented (); return false; } set { NotImplemented (); } }
112
113 #if NET_4_5
114                 public virtual bool SuppressFormsAuthenticationRedirect { get { NotImplemented (); return false; } set { NotImplemented (); } }
115 #endif
116
117                 public virtual bool TrySkipIisCustomErrors { get { NotImplemented (); return false; } set { NotImplemented (); } }
118
119
120                 public virtual void AddCacheDependency (params CacheDependency [] dependencies)
121                 {
122                         NotImplemented ();
123                 }
124
125
126                 public virtual void AddCacheItemDependencies (ArrayList cacheKeys)
127                 {
128                         NotImplemented ();
129                 }
130
131
132                 public virtual void AddCacheItemDependencies (string [] cacheKeys)
133                 {
134                         NotImplemented ();
135                 }
136
137
138                 public virtual void AddCacheItemDependency (string cacheKey)
139                 {
140                         NotImplemented ();
141                 }
142
143
144                 public virtual void AddFileDependencies (ArrayList filenames)
145                 {
146                         NotImplemented ();
147                 }
148
149
150                 public virtual void AddFileDependencies (string [] filenames)
151                 {
152                         NotImplemented ();
153                 }
154
155
156                 public virtual void AddFileDependency (string filename)
157                 {
158                         NotImplemented ();
159                 }
160
161
162                 public virtual void AddHeader (string name, string value)
163                 {
164                         NotImplemented ();
165                 }
166
167
168                 public virtual void AppendCookie (HttpCookie cookie)
169                 {
170                         NotImplemented ();
171                 }
172
173
174                 public virtual void AppendHeader (string name, string value)
175                 {
176                         NotImplemented ();
177                 }
178
179
180                 public virtual void AppendToLog (string param)
181                 {
182                         NotImplemented ();
183                 }
184
185
186                 public virtual string ApplyAppPathModifier (string virtualPath)
187                 {
188                         NotImplemented ();
189                         return null;
190                 }
191
192
193                 public virtual void BinaryWrite (byte [] buffer)
194                 {
195                         NotImplemented ();
196                 }
197
198
199                 public virtual void Clear ()
200                 {
201                         NotImplemented ();
202                 }
203
204
205                 public virtual void ClearContent ()
206                 {
207                         NotImplemented ();
208                 }
209
210
211                 public virtual void ClearHeaders ()
212                 {
213                         NotImplemented ();
214                 }
215
216
217                 public virtual void Close ()
218                 {
219                         NotImplemented ();
220                 }
221
222
223                 public virtual void DisableKernelCache ()
224                 {
225                         NotImplemented ();
226                 }
227
228
229                 public virtual void End ()
230                 {
231                         NotImplemented ();
232                 }
233
234
235                 public virtual void Flush ()
236                 {
237                         NotImplemented ();
238                 }
239
240
241                 public virtual void Pics (string value)
242                 {
243                         NotImplemented ();
244                 }
245
246
247                 public virtual void Redirect (string url)
248                 {
249                         NotImplemented ();
250                 }
251
252
253                 public virtual void Redirect (string url, bool endResponse)
254                 {
255                         NotImplemented ();
256                 }
257 #if NET_4_0
258                 public virtual void RedirectPermanent (string url)
259                 {
260                         NotImplemented ();
261                 }
262
263                 public virtual void RedirectPermanent (string url, bool endResponse)
264                 {
265                         NotImplemented ();
266                 }
267
268                 public virtual void RedirectToRoute (object routeValues)
269                 {
270                         NotImplemented ();
271                 }
272
273                 public virtual void RedirectToRoute (RouteValueDictionary routeValues)
274                 {
275                         NotImplemented ();
276                 }
277
278                 public virtual void RedirectToRoute (string routeName)
279                 {
280                         NotImplemented ();
281                 }
282
283                 public virtual void RedirectToRoute (string routeName, object routeValues)
284                 {
285                         NotImplemented ();
286                 }
287
288                 public virtual void RedirectToRoute (string routeName, RouteValueDictionary routeValues)
289                 {
290                         NotImplemented ();
291                 }
292
293                 public virtual void RedirectToRoutePermanent (object routeValues)
294                 {
295                         NotImplemented ();
296                 }
297
298                 public virtual void RedirectToRoutePermanent (RouteValueDictionary routeValues)
299                 {
300                         NotImplemented ();
301                 }
302
303                 public virtual void RedirectToRoutePermanent (string routeName)
304                 {
305                         NotImplemented ();
306                 }
307
308                 public virtual void RedirectToRoutePermanent (string routeName, object routeValues)
309                 {
310                         NotImplemented ();
311                 }
312
313                 public virtual void RedirectToRoutePermanent (string routeName, RouteValueDictionary routeValues)
314                 {
315                         NotImplemented ();
316                 }
317
318                 public virtual void RemoveOutputCacheItem (string path, string providerName)
319                 {
320                         NotImplemented ();
321                 }
322 #endif
323                 public virtual void RemoveOutputCacheItem (string path)
324                 {
325                         NotImplemented ();
326                 }
327
328
329                 public virtual void SetCookie (HttpCookie cookie)
330                 {
331                         NotImplemented ();
332                 }
333
334
335                 public virtual void TransmitFile (string filename)
336                 {
337                         NotImplemented ();
338                 }
339
340
341                 public virtual void TransmitFile (string filename, long offset, long length)
342                 {
343                         NotImplemented ();
344                 }
345
346
347                 public virtual void Write (char ch)
348                 {
349                         NotImplemented ();
350                 }
351
352
353                 public virtual void Write (object obj)
354                 {
355                         NotImplemented ();
356                 }
357
358
359                 public virtual void Write (string s)
360                 {
361                         NotImplemented ();
362                 }
363
364
365                 public virtual void Write (char [] buffer, int index, int count)
366                 {
367                         NotImplemented ();
368                 }
369
370
371                 public virtual void WriteFile (string filename)
372                 {
373                         NotImplemented ();
374                 }
375
376
377                 public virtual void WriteFile (string filename, bool readIntoMemory)
378                 {
379                         NotImplemented ();
380                 }
381
382
383                 public virtual void WriteFile (IntPtr fileHandle, long offset, long size)
384                 {
385                         NotImplemented ();
386                 }
387
388
389                 public virtual void WriteFile (string filename, long offset, long size)
390                 {
391                         NotImplemented ();
392                 }
393
394
395                 public virtual void WriteSubstitution (HttpResponseSubstitutionCallback callback)
396                 {
397                         NotImplemented ();
398                 }
399         }
400 }