HttpResponseBase.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. //
  2. // HttpResponseBase.cs
  3. //
  4. // Author:
  5. // Atsushi Enomoto <[email protected]>
  6. //
  7. // Copyright (C) 2008 Novell Inc. http://novell.com
  8. //
  9. //
  10. // Permission is hereby granted, free of charge, to any person obtaining
  11. // a copy of this software and associated documentation files (the
  12. // "Software"), to deal in the Software without restriction, including
  13. // without limitation the rights to use, copy, modify, merge, publish,
  14. // distribute, sublicense, and/or sell copies of the Software, and to
  15. // permit persons to whom the Software is furnished to do so, subject to
  16. // the following conditions:
  17. //
  18. // The above copyright notice and this permission notice shall be
  19. // included in all copies or substantial portions of the Software.
  20. //
  21. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28. //
  29. using System;
  30. using System.Collections;
  31. using System.Collections.Generic;
  32. using System.Collections.Specialized;
  33. using System.Globalization;
  34. using System.IO;
  35. using System.Runtime.CompilerServices;
  36. using System.Runtime.Serialization;
  37. using System.Security.Permissions;
  38. using System.Security.Principal;
  39. using System.Text;
  40. using System.Web.Caching;
  41. namespace System.Web
  42. {
  43. #if NET_4_0
  44. [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
  45. #endif
  46. [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  47. [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
  48. public abstract class HttpResponseBase
  49. {
  50. void NotImplemented ()
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. public virtual bool Buffer { get { NotImplemented (); return false; } set { NotImplemented (); } }
  55. public virtual bool BufferOutput { get { NotImplemented (); return false; } set { NotImplemented (); } }
  56. public virtual HttpCachePolicyBase Cache { get { NotImplemented (); return null; } }
  57. public virtual string CacheControl { get { NotImplemented (); return null; } set { NotImplemented (); } }
  58. public virtual string Charset { get { NotImplemented (); return null; } set { NotImplemented (); } }
  59. public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
  60. public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
  61. public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
  62. public virtual int Expires { get { NotImplemented (); return 0; } set { NotImplemented (); } }
  63. public virtual DateTime ExpiresAbsolute { get { NotImplemented (); return DateTime.MinValue; } set { NotImplemented (); } }
  64. public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
  65. public virtual Encoding HeaderEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
  66. public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
  67. public virtual bool IsClientConnected { get { NotImplemented (); return false; } }
  68. public virtual bool IsRequestBeingRedirected { get { NotImplemented (); return false; } }
  69. public virtual TextWriter Output { get { NotImplemented (); return null; } }
  70. public virtual Stream OutputStream { get { NotImplemented (); return null; } }
  71. public virtual string RedirectLocation { get { NotImplemented (); return null; } set { NotImplemented (); } }
  72. public virtual string Status { get { NotImplemented (); return null; } set { NotImplemented (); } }
  73. public virtual int StatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
  74. public virtual string StatusDescription { get { NotImplemented (); return null; } set { NotImplemented (); } }
  75. public virtual int SubStatusCode { get { NotImplemented (); return 0; } set { NotImplemented (); } }
  76. public virtual bool SuppressContent { get { NotImplemented (); return false; } set { NotImplemented (); } }
  77. public virtual bool TrySkipIisCustomErrors { get { NotImplemented (); return false; } set { NotImplemented (); } }
  78. public virtual void AddCacheDependency (params CacheDependency [] dependencies)
  79. {
  80. NotImplemented ();
  81. }
  82. public virtual void AddCacheItemDependencies (ArrayList cacheKeys)
  83. {
  84. NotImplemented ();
  85. }
  86. public virtual void AddCacheItemDependencies (string [] cacheKeys)
  87. {
  88. NotImplemented ();
  89. }
  90. public virtual void AddCacheItemDependency (string cacheKey)
  91. {
  92. NotImplemented ();
  93. }
  94. public virtual void AddFileDependencies (ArrayList filenames)
  95. {
  96. NotImplemented ();
  97. }
  98. public virtual void AddFileDependencies (string [] filenames)
  99. {
  100. NotImplemented ();
  101. }
  102. public virtual void AddFileDependency (string filename)
  103. {
  104. NotImplemented ();
  105. }
  106. public virtual void AddHeader (string name, string value)
  107. {
  108. NotImplemented ();
  109. }
  110. public virtual void AppendCookie (HttpCookie cookie)
  111. {
  112. NotImplemented ();
  113. }
  114. public virtual void AppendHeader (string name, string value)
  115. {
  116. NotImplemented ();
  117. }
  118. public virtual void AppendToLog (string param)
  119. {
  120. NotImplemented ();
  121. }
  122. public virtual string ApplyAppPathModifier (string virtualPath)
  123. {
  124. NotImplemented ();
  125. return null;
  126. }
  127. public virtual void BinaryWrite (byte [] buffer)
  128. {
  129. NotImplemented ();
  130. }
  131. public virtual void Clear ()
  132. {
  133. NotImplemented ();
  134. }
  135. public virtual void ClearContent ()
  136. {
  137. NotImplemented ();
  138. }
  139. public virtual void ClearHeaders ()
  140. {
  141. NotImplemented ();
  142. }
  143. public virtual void Close ()
  144. {
  145. NotImplemented ();
  146. }
  147. public virtual void DisableKernelCache ()
  148. {
  149. NotImplemented ();
  150. }
  151. public virtual void End ()
  152. {
  153. NotImplemented ();
  154. }
  155. public virtual void Flush ()
  156. {
  157. NotImplemented ();
  158. }
  159. public virtual void Pics (string value)
  160. {
  161. NotImplemented ();
  162. }
  163. public virtual void Redirect (string url)
  164. {
  165. NotImplemented ();
  166. }
  167. public virtual void Redirect (string url, bool endResponse)
  168. {
  169. NotImplemented ();
  170. }
  171. public virtual void RemoveOutputCacheItem (string path)
  172. {
  173. NotImplemented ();
  174. }
  175. public virtual void SetCookie (HttpCookie cookie)
  176. {
  177. NotImplemented ();
  178. }
  179. public virtual void TransmitFile (string filename)
  180. {
  181. NotImplemented ();
  182. }
  183. public virtual void TransmitFile (string filename, long offset, long length)
  184. {
  185. NotImplemented ();
  186. }
  187. public virtual void Write (char ch)
  188. {
  189. NotImplemented ();
  190. }
  191. public virtual void Write (object obj)
  192. {
  193. NotImplemented ();
  194. }
  195. public virtual void Write (string s)
  196. {
  197. NotImplemented ();
  198. }
  199. public virtual void Write (char [] buffer, int index, int count)
  200. {
  201. NotImplemented ();
  202. }
  203. public virtual void WriteFile (string filename)
  204. {
  205. NotImplemented ();
  206. }
  207. public virtual void WriteFile (string filename, bool readIntoMemory)
  208. {
  209. NotImplemented ();
  210. }
  211. public virtual void WriteFile (IntPtr fileHandle, long offset, long size)
  212. {
  213. NotImplemented ();
  214. }
  215. public virtual void WriteFile (string filename, long offset, long size)
  216. {
  217. NotImplemented ();
  218. }
  219. public virtual void WriteSubstitution (HttpResponseSubstitutionCallback callback)
  220. {
  221. NotImplemented ();
  222. }
  223. }
  224. }