2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git] / mcs / class / System.Web.Abstractions / System.Web / HttpContextBase.cs
1 //
2 // HttpContextBase.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.Globalization;
34 using System.Runtime.CompilerServices;
35 using System.Security.Permissions;
36 using System.Security.Principal;
37 using System.Web.Caching;
38 using System.Web.Profile;
39
40 namespace System.Web
41 {
42 #if NET_4_0
43         [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
44 #endif
45         [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
46         [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
47         public abstract class HttpContextBase : IServiceProvider
48         {
49                 void NotImplemented ()
50                 {
51                         throw new NotImplementedException ();
52                 }
53
54                 public virtual Exception [] AllErrors { get { NotImplemented (); return null; } }
55
56                 public virtual HttpApplicationStateBase Application { get { NotImplemented (); return null; } }
57
58                 public virtual HttpApplication ApplicationInstance { get { NotImplemented (); return null; } set { NotImplemented (); } }
59
60                 public virtual Cache Cache { get { NotImplemented (); return null; } }
61
62                 public virtual IHttpHandler CurrentHandler { get { NotImplemented (); return null; } }
63
64                 public virtual RequestNotification CurrentNotification { get { NotImplemented (); return default (RequestNotification); } }
65
66                 public virtual Exception Error { get { NotImplemented (); return null; } }
67
68                 public virtual IHttpHandler Handler { get { NotImplemented (); return null; } set { NotImplemented (); } }
69
70                 public virtual bool IsCustomErrorEnabled { get { NotImplemented (); return false; } }
71
72                 public virtual bool IsDebuggingEnabled { get { NotImplemented (); return false; } }
73
74                 public virtual bool IsPostNotification { get { NotImplemented (); return false; } }
75
76                 public virtual IDictionary Items { get { NotImplemented (); return null; } }
77
78                 public virtual IHttpHandler PreviousHandler { get { NotImplemented (); return null; } }
79
80                 public virtual ProfileBase Profile { get { NotImplemented (); return null; } }
81
82                 public virtual HttpRequestBase Request { get { NotImplemented (); return null; } }
83
84                 public virtual HttpResponseBase Response { get { NotImplemented (); return null; } }
85
86                 public virtual HttpServerUtilityBase Server { get { NotImplemented (); return null; } }
87
88                 public virtual HttpSessionStateBase Session { get { NotImplemented (); return null; } }
89
90                 public virtual bool SkipAuthorization { get { NotImplemented (); return false; } set { NotImplemented (); } }
91
92                 public virtual DateTime Timestamp { get { NotImplemented (); return DateTime.MinValue; } }
93
94                 public virtual TraceContext Trace { get { NotImplemented (); return null; } }
95
96                 public virtual IPrincipal User { get { NotImplemented (); return null; } set { NotImplemented (); } }
97
98                 public virtual void AddError (Exception errorInfo)
99                 {
100                         NotImplemented ();
101                 }
102
103                 public virtual void ClearError ()
104                 {
105                         NotImplemented ();
106                 }
107
108                 public virtual object GetGlobalResourceObject (string classKey, string resourceKey)
109                 {
110                         NotImplemented ();
111                         return null;
112                 }
113
114                 public virtual object GetGlobalResourceObject (string classKey, string resourceKey, CultureInfo culture)
115                 {
116                         NotImplemented ();
117                         return null;
118                 }
119
120                 public virtual object GetLocalResourceObject (string virtualPath, string resourceKey)
121                 {
122                         NotImplemented ();
123                         return null;
124                 }
125
126                 public virtual object GetLocalResourceObject (string virtualPath, string resourceKey, CultureInfo culture)
127                 {
128                         NotImplemented ();
129                         return null;
130                 }
131
132                 public virtual object GetSection (string sectionName)
133                 {
134                         NotImplemented ();
135                         return null;
136                 }
137
138                 public virtual object GetService (Type serviceType)
139                 {
140                         NotImplemented ();
141                         return null;
142                 }
143
144                 public virtual void RewritePath (string path)
145                 {
146                         NotImplemented ();
147                 }
148
149                 public virtual void RewritePath (string path, bool rebaseClientPath)
150                 {
151                         NotImplemented ();
152                 }
153
154                 public virtual void RewritePath (string filePath, string pathInfo, string queryString)
155                 {
156                         NotImplemented ();
157                 }
158
159                 public virtual void RewritePath (string filePath, string pathInfo, string queryString, bool setClientFilePath)
160                 {
161                         NotImplemented ();
162                 }
163         }
164 }