2009-06-12 Bill Holmes <billholmes54@gmail.com>
[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.Serialization;
37 using System.Security.Permissions;
38 using System.Security.Principal;
39 using System.Text;
40 using System.Web.Caching;
41
42 namespace System.Web
43 {
44         [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
45         [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
46         public abstract class HttpRequestBase
47         {
48                 void NotImplemented ()
49                 {
50                         throw new NotImplementedException ();
51                 }
52
53                 public virtual string [] AcceptTypes { get { NotImplemented (); return null; } }
54
55                 public virtual string AnonymousID { get { NotImplemented (); return null; } }
56
57                 public virtual string ApplicationPath { get { NotImplemented (); return null; } }
58
59                 public virtual string AppRelativeCurrentExecutionFilePath { get { NotImplemented (); return null; } }
60
61                 public virtual HttpBrowserCapabilitiesBase Browser { get { NotImplemented (); return null; } }
62
63                 public virtual HttpClientCertificate ClientCertificate { get { NotImplemented (); return null; } }
64
65                 public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
66
67                 public virtual int ContentLength { get { NotImplemented (); return 0; } }
68
69                 public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
70
71                 public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
72
73                 public virtual string CurrentExecutionFilePath { get { NotImplemented (); return null; } }
74
75                 public virtual string FilePath { get { NotImplemented (); return null; } }
76
77                 public virtual HttpFileCollectionBase Files { get { NotImplemented (); return null; } }
78
79                 public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
80
81                 public virtual NameValueCollection Form { get { NotImplemented (); return null; } }
82
83                 public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
84
85                 public virtual string HttpMethod { get { NotImplemented (); return null; } }
86
87                 public virtual Stream InputStream { get { NotImplemented (); return null; } }
88
89                 public virtual bool IsAuthenticated { get { NotImplemented (); return false; } }
90
91                 public virtual bool IsLocal { get { NotImplemented (); return false; } }
92
93                 public virtual bool IsSecureConnection { get { NotImplemented (); return false; } }
94
95                 public virtual string this [string key] {
96                         get { throw new NotImplementedException (); }
97                 }
98
99                 public virtual WindowsIdentity LogonUserIdentity { get { NotImplemented (); return null; } }
100
101                 public virtual NameValueCollection Params { get { NotImplemented (); return null; } }
102
103                 public virtual string Path { get { NotImplemented (); return null; } }
104
105                 public virtual string PathInfo { get { NotImplemented (); return null; } }
106
107                 public virtual string PhysicalApplicationPath { get { NotImplemented (); return null; } }
108
109                 public virtual string PhysicalPath { get { NotImplemented (); return null; } }
110
111                 public virtual NameValueCollection QueryString { get { NotImplemented (); return null; } }
112
113                 public virtual string RawUrl { get { NotImplemented (); return null; } }
114
115                 public virtual string RequestType { get { NotImplemented (); return null; } set { NotImplemented (); } }
116
117                 public virtual NameValueCollection ServerVariables { get { NotImplemented (); return null; } }
118
119                 public virtual int TotalBytes { get { NotImplemented (); return 0; } }
120
121                 public virtual Uri Url { get { NotImplemented (); return null; } }
122
123                 public virtual Uri UrlReferrer { get { NotImplemented (); return null; } }
124
125                 public virtual string UserAgent { get { NotImplemented (); return null; } }
126
127                 public virtual string UserHostAddress { get { NotImplemented (); return null; } }
128
129                 public virtual string UserHostName { get { NotImplemented (); return null; } }
130
131                 public virtual string [] UserLanguages { get { NotImplemented (); return null; } }
132
133
134                 public virtual byte [] BinaryRead (int count)
135                 {
136                         NotImplemented ();
137                         return null;
138                 }
139
140                 public virtual int [] MapImageCoordinates (string imageFieldName)
141                 {
142                         NotImplemented ();
143                         return null;
144                 }
145
146                 public virtual string MapPath (string virtualPath)
147                 {
148                         NotImplemented ();
149                         return null;
150                 }
151
152                 public virtual string MapPath (string virtualPath, string baseVirtualDir, bool allowCrossAppMapping)
153                 {
154                         NotImplemented ();
155                         return null;
156                 }
157
158                 public virtual void SaveAs (string filename, bool includeHeaders)
159                 {
160                         NotImplemented ();
161                 }
162
163                 public virtual void ValidateInput ()
164                 {
165                         NotImplemented ();
166                 }
167         }
168 }