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