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