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;
45 using System.Web.Routing;
51 [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
53 [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
54 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
55 public abstract class HttpResponseBase
57 void NotImplemented ()
59 throw new NotImplementedException ();
63 public virtual bool Buffer { get { NotImplemented (); return false; } set { NotImplemented (); } }
65 public virtual bool BufferOutput { get { NotImplemented (); return false; } set { NotImplemented (); } }
67 public virtual HttpCachePolicyBase Cache { get { NotImplemented (); return null; } }
69 public virtual string CacheControl { get { NotImplemented (); return null; } set { NotImplemented (); } }
71 public virtual string Charset { get { NotImplemented (); return null; } set { NotImplemented (); } }
74 public virtual CancellationToken ClientDisconnectedToken { get { NotImplemented (); return CancellationToken.None; } }
77 public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
79 public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
81 public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
83 public virtual int Expires { get { NotImplemented (); return 0; } set { NotImplemented (); } }
85 public virtual DateTime ExpiresAbsolute { get { NotImplemented (); return DateTime.MinValue; } set { NotImplemented (); } }
87 public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
89 public virtual Encoding HeaderEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
91 public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
93 public virtual bool IsClientConnected { get { NotImplemented (); return false; } }
95 public virtual bool IsRequestBeingRedirected { get { NotImplemented (); return false; } }
97 public virtual TextWriter Output { get { NotImplemented (); return null; } set { NotImplemented (); } }
99 public virtual Stream OutputStream { get { NotImplemented (); return null; } }
101 public virtual string RedirectLocation { get { NotImplemented (); return null; } set { NotImplemented (); } }
103 public virtual string Status { get { NotImplemented (); return null; } set { NotImplemented (); } }
105 public virtual int StatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
107 public virtual string StatusDescription { get { NotImplemented (); return null; } set { NotImplemented (); } }
109 public virtual int SubStatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
111 public virtual bool SuppressContent { get { NotImplemented (); return false; } set { NotImplemented (); } }
114 public virtual bool SuppressFormsAuthenticationRedirect { get { NotImplemented (); return false; } set { NotImplemented (); } }
117 public virtual bool TrySkipIisCustomErrors { get { NotImplemented (); return false; } set { NotImplemented (); } }
120 public virtual void AddCacheDependency (params CacheDependency [] dependencies)
126 public virtual void AddCacheItemDependencies (ArrayList cacheKeys)
132 public virtual void AddCacheItemDependencies (string [] cacheKeys)
138 public virtual void AddCacheItemDependency (string cacheKey)
144 public virtual void AddFileDependencies (ArrayList filenames)
150 public virtual void AddFileDependencies (string [] filenames)
156 public virtual void AddFileDependency (string filename)
162 public virtual void AddHeader (string name, string value)
168 public virtual void AppendCookie (HttpCookie cookie)
174 public virtual void AppendHeader (string name, string value)
180 public virtual void AppendToLog (string param)
186 public virtual string ApplyAppPathModifier (string virtualPath)
193 public virtual void BinaryWrite (byte [] buffer)
199 public virtual void Clear ()
205 public virtual void ClearContent ()
211 public virtual void ClearHeaders ()
217 public virtual void Close ()
223 public virtual void DisableKernelCache ()
229 public virtual void End ()
235 public virtual void Flush ()
241 public virtual void Pics (string value)
247 public virtual void Redirect (string url)
253 public virtual void Redirect (string url, bool endResponse)
258 public virtual void RedirectPermanent (string url)
263 public virtual void RedirectPermanent (string url, bool endResponse)
268 public virtual void RedirectToRoute (object routeValues)
273 public virtual void RedirectToRoute (RouteValueDictionary routeValues)
278 public virtual void RedirectToRoute (string routeName)
283 public virtual void RedirectToRoute (string routeName, object routeValues)
288 public virtual void RedirectToRoute (string routeName, RouteValueDictionary routeValues)
293 public virtual void RedirectToRoutePermanent (object routeValues)
298 public virtual void RedirectToRoutePermanent (RouteValueDictionary routeValues)
303 public virtual void RedirectToRoutePermanent (string routeName)
308 public virtual void RedirectToRoutePermanent (string routeName, object routeValues)
313 public virtual void RedirectToRoutePermanent (string routeName, RouteValueDictionary routeValues)
318 public virtual void RemoveOutputCacheItem (string path, string providerName)
323 public virtual void RemoveOutputCacheItem (string path)
329 public virtual void SetCookie (HttpCookie cookie)
335 public virtual void TransmitFile (string filename)
341 public virtual void TransmitFile (string filename, long offset, long length)
347 public virtual void Write (char ch)
353 public virtual void Write (object obj)
359 public virtual void Write (string s)
365 public virtual void Write (char [] buffer, int index, int count)
371 public virtual void WriteFile (string filename)
377 public virtual void WriteFile (string filename, bool readIntoMemory)
383 public virtual void WriteFile (IntPtr fileHandle, long offset, long size)
389 public virtual void WriteFile (string filename, long offset, long size)
395 public virtual void WriteSubstitution (HttpResponseSubstitutionCallback callback)