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;
42 using System.Threading;
44 using System.Web.Routing;
48 [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
49 [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
50 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
51 public abstract class HttpResponseBase
53 void NotImplemented ()
55 throw new NotImplementedException ();
59 public virtual bool Buffer { get { NotImplemented (); return false; } set { NotImplemented (); } }
61 public virtual bool BufferOutput { get { NotImplemented (); return false; } set { NotImplemented (); } }
63 public virtual HttpCachePolicyBase Cache { get { NotImplemented (); return null; } }
65 public virtual string CacheControl { get { NotImplemented (); return null; } set { NotImplemented (); } }
67 public virtual string Charset { get { NotImplemented (); return null; } set { NotImplemented (); } }
69 public virtual CancellationToken ClientDisconnectedToken { get { NotImplemented (); return CancellationToken.None; } }
71 public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
73 public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
75 public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
77 public virtual int Expires { get { NotImplemented (); return 0; } set { NotImplemented (); } }
79 public virtual DateTime ExpiresAbsolute { get { NotImplemented (); return DateTime.MinValue; } set { NotImplemented (); } }
81 public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
83 public virtual Encoding HeaderEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
85 public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
87 public virtual bool IsClientConnected { get { NotImplemented (); return false; } }
89 public virtual bool IsRequestBeingRedirected { get { NotImplemented (); return false; } }
91 public virtual TextWriter Output { get { NotImplemented (); return null; } set { NotImplemented (); } }
93 public virtual Stream OutputStream { get { NotImplemented (); return null; } }
95 public virtual string RedirectLocation { get { NotImplemented (); return null; } set { NotImplemented (); } }
97 public virtual string Status { get { NotImplemented (); return null; } set { NotImplemented (); } }
99 public virtual int StatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
101 public virtual string StatusDescription { get { NotImplemented (); return null; } set { NotImplemented (); } }
103 public virtual int SubStatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
105 public virtual bool SuppressContent { get { NotImplemented (); return false; } set { NotImplemented (); } }
107 public virtual bool SuppressFormsAuthenticationRedirect { get { NotImplemented (); return false; } set { NotImplemented (); } }
109 public virtual bool TrySkipIisCustomErrors { get { NotImplemented (); return false; } set { NotImplemented (); } }
112 public virtual void AddCacheDependency (params CacheDependency [] dependencies)
118 public virtual void AddCacheItemDependencies (ArrayList cacheKeys)
124 public virtual void AddCacheItemDependencies (string [] cacheKeys)
130 public virtual void AddCacheItemDependency (string cacheKey)
136 public virtual void AddFileDependencies (ArrayList filenames)
142 public virtual void AddFileDependencies (string [] filenames)
148 public virtual void AddFileDependency (string filename)
154 public virtual void AddHeader (string name, string value)
160 public virtual void AppendCookie (HttpCookie cookie)
166 public virtual void AppendHeader (string name, string value)
172 public virtual void AppendToLog (string param)
178 public virtual string ApplyAppPathModifier (string virtualPath)
185 public virtual void BinaryWrite (byte [] buffer)
191 public virtual void Clear ()
197 public virtual void ClearContent ()
203 public virtual void ClearHeaders ()
209 public virtual void Close ()
215 public virtual void DisableKernelCache ()
221 public virtual void End ()
227 public virtual void Flush ()
233 public virtual void Pics (string value)
239 public virtual void Redirect (string url)
245 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)
313 public virtual void RemoveOutputCacheItem (string path)
319 public virtual void SetCookie (HttpCookie cookie)
325 public virtual void TransmitFile (string filename)
331 public virtual void TransmitFile (string filename, long offset, long length)
337 public virtual void Write (char ch)
343 public virtual void Write (object obj)
349 public virtual void Write (string s)
355 public virtual void Write (char [] buffer, int index, int count)
361 public virtual void WriteFile (string filename)
367 public virtual void WriteFile (string filename, bool readIntoMemory)
373 public virtual void WriteFile (IntPtr fileHandle, long offset, long size)
379 public virtual void WriteFile (string filename, long offset, long size)
385 public virtual void WriteSubstitution (HttpResponseSubstitutionCallback callback)