5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2008 Novell Inc. http://novell.com
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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.
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.Collections.Specialized;
34 using System.Globalization;
36 using System.Runtime.CompilerServices;
37 using System.Runtime.Serialization;
38 using System.Security.Permissions;
39 using System.Security.Principal;
41 using System.Web.Caching;
44 using System.Web.Routing;
50 [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
52 [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
53 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
54 public abstract class HttpResponseBase
56 void NotImplemented ()
58 throw new NotImplementedException ();
62 public virtual bool Buffer { get { NotImplemented (); return false; } set { NotImplemented (); } }
64 public virtual bool BufferOutput { get { NotImplemented (); return false; } set { NotImplemented (); } }
66 public virtual HttpCachePolicyBase Cache { get { NotImplemented (); return null; } }
68 public virtual string CacheControl { get { NotImplemented (); return null; } set { NotImplemented (); } }
70 public virtual string Charset { get { NotImplemented (); return null; } set { NotImplemented (); } }
72 public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
74 public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
76 public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
78 public virtual int Expires { get { NotImplemented (); return 0; } set { NotImplemented (); } }
80 public virtual DateTime ExpiresAbsolute { get { NotImplemented (); return DateTime.MinValue; } set { NotImplemented (); } }
82 public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
84 public virtual Encoding HeaderEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
86 public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
88 public virtual bool IsClientConnected { get { NotImplemented (); return false; } }
90 public virtual bool IsRequestBeingRedirected { get { NotImplemented (); return false; } }
92 public virtual TextWriter Output { get { NotImplemented (); return null; } set { NotImplemented (); } }
94 public virtual Stream OutputStream { get { NotImplemented (); return null; } }
96 public virtual string RedirectLocation { get { NotImplemented (); return null; } set { NotImplemented (); } }
98 public virtual string Status { get { NotImplemented (); return null; } set { NotImplemented (); } }
100 public virtual int StatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
102 public virtual string StatusDescription { get { NotImplemented (); return null; } set { NotImplemented (); } }
104 public virtual int SubStatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
106 public virtual bool SuppressContent { get { NotImplemented (); return false; } set { NotImplemented (); } }
108 public virtual bool TrySkipIisCustomErrors { get { NotImplemented (); return false; } set { NotImplemented (); } }
111 public virtual void AddCacheDependency (params CacheDependency [] dependencies)
117 public virtual void AddCacheItemDependencies (ArrayList cacheKeys)
123 public virtual void AddCacheItemDependencies (string [] cacheKeys)
129 public virtual void AddCacheItemDependency (string cacheKey)
135 public virtual void AddFileDependencies (ArrayList filenames)
141 public virtual void AddFileDependencies (string [] filenames)
147 public virtual void AddFileDependency (string filename)
153 public virtual void AddHeader (string name, string value)
159 public virtual void AppendCookie (HttpCookie cookie)
165 public virtual void AppendHeader (string name, string value)
171 public virtual void AppendToLog (string param)
177 public virtual string ApplyAppPathModifier (string virtualPath)
184 public virtual void BinaryWrite (byte [] buffer)
190 public virtual void Clear ()
196 public virtual void ClearContent ()
202 public virtual void ClearHeaders ()
208 public virtual void Close ()
214 public virtual void DisableKernelCache ()
220 public virtual void End ()
226 public virtual void Flush ()
232 public virtual void Pics (string value)
238 public virtual void Redirect (string url)
244 public virtual void Redirect (string url, bool endResponse)
249 public virtual void RedirectPermanent (string url)
254 public virtual void RedirectPermanent (string url, bool endResponse)
259 public virtual void RedirectToRoute (object routeValues)
264 public virtual void RedirectToRoute (RouteValueDictionary routeValues)
269 public virtual void RedirectToRoute (string routeName)
274 public virtual void RedirectToRoute (string routeName, object routeValues)
279 public virtual void RedirectToRoute (string routeName, RouteValueDictionary routeValues)
284 public virtual void RedirectToRoutePermanent (object routeValues)
289 public virtual void RedirectToRoutePermanent (RouteValueDictionary routeValues)
294 public virtual void RedirectToRoutePermanent (string routeName)
299 public virtual void RedirectToRoutePermanent (string routeName, object routeValues)
304 public virtual void RedirectToRoutePermanent (string routeName, RouteValueDictionary routeValues)
309 public virtual void RemoveOutputCacheItem (string path, string providerName)
314 public virtual void RemoveOutputCacheItem (string path)
320 public virtual void SetCookie (HttpCookie cookie)
326 public virtual void TransmitFile (string filename)
332 public virtual void TransmitFile (string filename, long offset, long length)
338 public virtual void Write (char ch)
344 public virtual void Write (object obj)
350 public virtual void Write (string s)
356 public virtual void Write (char [] buffer, int index, int count)
362 public virtual void WriteFile (string filename)
368 public virtual void WriteFile (string filename, bool readIntoMemory)
374 public virtual void WriteFile (IntPtr fileHandle, long offset, long size)
380 public virtual void WriteFile (string filename, long offset, long size)
386 public virtual void WriteSubstitution (HttpResponseSubstitutionCallback callback)