HttpRequestBase.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. //
  2. // HttpRequestBase.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 HttpRequestBase
  49. {
  50. void NotImplemented ()
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. public virtual string [] AcceptTypes { get { NotImplemented (); return null; } }
  55. public virtual string AnonymousID { get { NotImplemented (); return null; } }
  56. public virtual string ApplicationPath { get { NotImplemented (); return null; } }
  57. public virtual string AppRelativeCurrentExecutionFilePath { get { NotImplemented (); return null; } }
  58. public virtual HttpBrowserCapabilitiesBase Browser { get { NotImplemented (); return null; } }
  59. public virtual HttpClientCertificate ClientCertificate { get { NotImplemented (); return null; } }
  60. public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
  61. public virtual int ContentLength { get { NotImplemented (); return 0; } }
  62. public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
  63. public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
  64. public virtual string CurrentExecutionFilePath { get { NotImplemented (); return null; } }
  65. public virtual string FilePath { get { NotImplemented (); return null; } }
  66. public virtual HttpFileCollectionBase Files { get { NotImplemented (); return null; } }
  67. public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
  68. public virtual NameValueCollection Form { get { NotImplemented (); return null; } }
  69. public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
  70. public virtual string HttpMethod { get { NotImplemented (); return null; } }
  71. public virtual Stream InputStream { get { NotImplemented (); return null; } }
  72. public virtual bool IsAuthenticated { get { NotImplemented (); return false; } }
  73. public virtual bool IsLocal { get { NotImplemented (); return false; } }
  74. public virtual bool IsSecureConnection { get { NotImplemented (); return false; } }
  75. public virtual string this [string key] {
  76. get { throw new NotImplementedException (); }
  77. }
  78. public virtual WindowsIdentity LogonUserIdentity { get { NotImplemented (); return null; } }
  79. public virtual NameValueCollection Params { get { NotImplemented (); return null; } }
  80. public virtual string Path { get { NotImplemented (); return null; } }
  81. public virtual string PathInfo { get { NotImplemented (); return null; } }
  82. public virtual string PhysicalApplicationPath { get { NotImplemented (); return null; } }
  83. public virtual string PhysicalPath { get { NotImplemented (); return null; } }
  84. public virtual NameValueCollection QueryString { get { NotImplemented (); return null; } }
  85. public virtual string RawUrl { get { NotImplemented (); return null; } }
  86. public virtual string RequestType { get { NotImplemented (); return null; } set { NotImplemented (); } }
  87. public virtual NameValueCollection ServerVariables { get { NotImplemented (); return null; } }
  88. public virtual int TotalBytes { get { NotImplemented (); return 0; } }
  89. public virtual Uri Url { get { NotImplemented (); return null; } }
  90. public virtual Uri UrlReferrer { get { NotImplemented (); return null; } }
  91. public virtual string UserAgent { get { NotImplemented (); return null; } }
  92. public virtual string UserHostAddress { get { NotImplemented (); return null; } }
  93. public virtual string UserHostName { get { NotImplemented (); return null; } }
  94. public virtual string [] UserLanguages { get { NotImplemented (); return null; } }
  95. public virtual byte [] BinaryRead (int count)
  96. {
  97. NotImplemented ();
  98. return null;
  99. }
  100. public virtual int [] MapImageCoordinates (string imageFieldName)
  101. {
  102. NotImplemented ();
  103. return null;
  104. }
  105. public virtual string MapPath (string virtualPath)
  106. {
  107. NotImplemented ();
  108. return null;
  109. }
  110. public virtual string MapPath (string virtualPath, string baseVirtualDir, bool allowCrossAppMapping)
  111. {
  112. NotImplemented ();
  113. return null;
  114. }
  115. public virtual void SaveAs (string filename, bool includeHeaders)
  116. {
  117. NotImplemented ();
  118. }
  119. public virtual void ValidateInput ()
  120. {
  121. NotImplemented ();
  122. }
  123. }
  124. }