5 // Atsushi Enomoto <atsushi@ximian.com>
7 // Copyright (C) 2008 Novell Inc. http://novell.com
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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.
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;
43 [TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
45 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
46 [AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
47 public abstract class HttpContextBase : IServiceProvider
49 void NotImplemented ()
51 throw new NotImplementedException ();
54 public virtual Exception [] AllErrors { get { NotImplemented (); return null; } }
56 public virtual HttpApplicationStateBase Application { get { NotImplemented (); return null; } }
58 public virtual HttpApplication ApplicationInstance { get { NotImplemented (); return null; } set { NotImplemented (); } }
60 public virtual Cache Cache { get { NotImplemented (); return null; } }
62 public virtual IHttpHandler CurrentHandler { get { NotImplemented (); return null; } }
64 public virtual RequestNotification CurrentNotification { get { NotImplemented (); return default (RequestNotification); } }
66 public virtual Exception Error { get { NotImplemented (); return null; } }
68 public virtual IHttpHandler Handler { get { NotImplemented (); return null; } set { NotImplemented (); } }
70 public virtual bool IsCustomErrorEnabled { get { NotImplemented (); return false; } }
72 public virtual bool IsDebuggingEnabled { get { NotImplemented (); return false; } }
74 public virtual bool IsPostNotification { get { NotImplemented (); return false; } }
76 public virtual IDictionary Items { get { NotImplemented (); return null; } }
78 public virtual IHttpHandler PreviousHandler { get { NotImplemented (); return null; } }
80 public virtual ProfileBase Profile { get { NotImplemented (); return null; } }
82 public virtual HttpRequestBase Request { get { NotImplemented (); return null; } }
84 public virtual HttpResponseBase Response { get { NotImplemented (); return null; } }
86 public virtual HttpServerUtilityBase Server { get { NotImplemented (); return null; } }
88 public virtual HttpSessionStateBase Session { get { NotImplemented (); return null; } }
90 public virtual bool SkipAuthorization { get { NotImplemented (); return false; } set { NotImplemented (); } }
92 public virtual DateTime Timestamp { get { NotImplemented (); return DateTime.MinValue; } }
94 public virtual TraceContext Trace { get { NotImplemented (); return null; } }
96 public virtual IPrincipal User { get { NotImplemented (); return null; } set { NotImplemented (); } }
98 public virtual void AddError (Exception errorInfo)
103 public virtual void ClearError ()
108 public virtual object GetGlobalResourceObject (string classKey, string resourceKey)
114 public virtual object GetGlobalResourceObject (string classKey, string resourceKey, CultureInfo culture)
120 public virtual object GetLocalResourceObject (string virtualPath, string resourceKey)
126 public virtual object GetLocalResourceObject (string virtualPath, string resourceKey, CultureInfo culture)
132 public virtual object GetSection (string sectionName)
138 public virtual object GetService (Type serviceType)
144 public virtual void RewritePath (string path)
149 public virtual void RewritePath (string path, bool rebaseClientPath)
154 public virtual void RewritePath (string filePath, string pathInfo, string queryString)
159 public virtual void RewritePath (string filePath, string pathInfo, string queryString, bool setClientFilePath)