Merge remote-tracking branch 'mfoliveira/ppc64el-v2'
[mono.git] / mcs / class / System.Web.Abstractions / System.Web / HttpRequestBase.cs
1 //
2 // HttpRequestBase.cs
3 //
4 // Author:
5 //      Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2008 Novell Inc. http://novell.com
8 //
9
10 //
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:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
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.
29 //
30 using System;
31 using System.Collections;
32 using System.Collections.Generic;
33 using System.Collections.Specialized;
34 using System.Globalization;
35 using System.IO;
36 using System.Runtime.CompilerServices;
37 using System.Runtime.Serialization;
38 using System.Security.Permissions;
39 using System.Security.Principal;
40 using System.Text;
41 using System.Web.Caching;
42
43 #if NET_4_0
44 using System.Security.Authentication.ExtendedProtection;
45 using System.Web.Routing;
46 #endif
47
48 namespace System.Web
49 {
50 #if NET_4_0
51         [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
52 #endif
53         [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
54         [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
55         public abstract class HttpRequestBase
56         {
57                 void NotImplemented ()
58                 {
59                         throw new NotImplementedException ();
60                 }
61
62                 public virtual string [] AcceptTypes { get { NotImplemented (); return null; } }
63
64                 public virtual string AnonymousID { get { NotImplemented (); return null; } }
65
66                 public virtual string ApplicationPath { get { NotImplemented (); return null; } }
67
68                 public virtual string AppRelativeCurrentExecutionFilePath { get { NotImplemented (); return null; } }
69
70                 public virtual HttpBrowserCapabilitiesBase Browser { get { NotImplemented (); return null; } }
71
72                 public virtual HttpClientCertificate ClientCertificate { get { NotImplemented (); return null; } }
73
74                 public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
75
76                 public virtual int ContentLength { get { NotImplemented (); return 0; } }
77
78                 public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
79
80                 public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
81
82                 public virtual string CurrentExecutionFilePath { get { NotImplemented (); return null; } }
83
84                 public virtual string FilePath { get { NotImplemented (); return null; } }
85
86                 public virtual HttpFileCollectionBase Files { get { NotImplemented (); return null; } }
87
88                 public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
89
90                 public virtual NameValueCollection Form { get { NotImplemented (); return null; } }
91
92                 public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
93
94                 public virtual string HttpMethod { get { NotImplemented (); return null; } }
95
96                 public virtual Stream InputStream { get { NotImplemented (); return null; } }
97 #if NET_4_0
98                 // LAMESPEC: MSDN says NotImplementedException is thrown only when the request is
99                 // not IIS7WorkerRequest or ISAPIWorkerRequestInProc, but it is thrown always.
100                 public virtual ChannelBinding HttpChannelBinding { get { NotImplemented (); return null; } }
101 #endif
102                 public virtual bool IsAuthenticated { get { NotImplemented (); return false; } }
103
104                 public virtual bool IsLocal { get { NotImplemented (); return false; } }
105
106                 public virtual bool IsSecureConnection { get { NotImplemented (); return false; } }
107
108                 public virtual string this [string key] {
109                         get { throw new NotImplementedException (); }
110                 }
111
112                 public virtual WindowsIdentity LogonUserIdentity { get { NotImplemented (); return null; } }
113
114                 public virtual NameValueCollection Params { get { NotImplemented (); return null; } }
115
116                 public virtual string Path { get { NotImplemented (); return null; } }
117
118                 public virtual string PathInfo { get { NotImplemented (); return null; } }
119
120                 public virtual string PhysicalApplicationPath { get { NotImplemented (); return null; } }
121
122                 public virtual string PhysicalPath { get { NotImplemented (); return null; } }
123
124                 public virtual NameValueCollection QueryString { get { NotImplemented (); return null; } }
125
126                 public virtual string RawUrl { get { NotImplemented (); return null; } }
127
128                 public virtual string RequestType { get { NotImplemented (); return null; } set { NotImplemented (); } }
129 #if NET_4_0
130                 public virtual RequestContext RequestContext {
131                         get { NotImplemented (); return null; } 
132                         internal set { NotImplemented (); }
133                 }
134 #endif
135                 public virtual NameValueCollection ServerVariables { get { NotImplemented (); return null; } }
136
137                 public virtual int TotalBytes { get { NotImplemented (); return 0; } }
138
139 #if NET_4_5
140                 public virtual ReadEntityBodyMode ReadEntityBodyMode { get { NotImplemented(); return ReadEntityBodyMode.Classic; } }
141
142                 public virtual UnvalidatedRequestValuesBase Unvalidated { get { NotImplemented (); return null; } }
143 #endif
144
145                 public virtual Uri Url { get { NotImplemented (); return null; } }
146
147                 public virtual Uri UrlReferrer { get { NotImplemented (); return null; } }
148
149                 public virtual string UserAgent { get { NotImplemented (); return null; } }
150
151                 public virtual string UserHostAddress { get { NotImplemented (); return null; } }
152
153                 public virtual string UserHostName { get { NotImplemented (); return null; } }
154
155                 public virtual string [] UserLanguages { get { NotImplemented (); return null; } }
156
157 #if NET_4_5
158                 public virtual void Abort ()
159                 {
160                         NotImplemented();
161                 }
162 #endif
163
164                 public virtual byte [] BinaryRead (int count)
165                 {
166                         NotImplemented ();
167                         return null;
168                 }
169
170                 public virtual int [] MapImageCoordinates (string imageFieldName)
171                 {
172                         NotImplemented ();
173                         return null;
174                 }
175
176                 public virtual string MapPath (string virtualPath)
177                 {
178                         NotImplemented ();
179                         return null;
180                 }
181
182                 public virtual string MapPath (string virtualPath, string baseVirtualDir, bool allowCrossAppMapping)
183                 {
184                         NotImplemented ();
185                         return null;
186                 }
187
188                 public virtual void SaveAs (string filename, bool includeHeaders)
189                 {
190                         NotImplemented ();
191                 }
192
193                 public virtual void ValidateInput ()
194                 {
195                         NotImplemented ();
196                 }
197         }
198 }