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