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;
39 using System.Web.SessionState;
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
48 void NotImplemented ()
50 throw new NotImplementedException ();
53 public virtual Exception [] AllErrors { get { NotImplemented (); return null; } }
55 public virtual HttpApplicationStateBase Application { get { NotImplemented (); return null; } }
57 public virtual HttpApplication ApplicationInstance { get { NotImplemented (); return null; } set { NotImplemented (); } }
59 public virtual Cache Cache { get { NotImplemented (); return null; } }
61 public virtual IHttpHandler CurrentHandler { get { NotImplemented (); return null; } }
63 public virtual RequestNotification CurrentNotification { get { NotImplemented (); return default (RequestNotification); } }
65 public virtual Exception Error { get { NotImplemented (); return null; } }
67 public virtual IHttpHandler Handler { get { NotImplemented (); return null; } set { NotImplemented (); } }
69 public virtual bool IsCustomErrorEnabled { get { NotImplemented (); return false; } }
71 public virtual bool IsDebuggingEnabled { get { NotImplemented (); return false; } }
73 public virtual bool IsPostNotification { get { NotImplemented (); return false; } }
75 public virtual IDictionary Items { get { NotImplemented (); return null; } }
77 public virtual IHttpHandler PreviousHandler { get { NotImplemented (); return null; } }
79 public virtual ProfileBase Profile { get { NotImplemented (); return null; } }
81 public virtual HttpRequestBase Request { get { NotImplemented (); return null; } }
83 public virtual HttpResponseBase Response { get { NotImplemented (); return null; } }
85 public virtual HttpServerUtilityBase Server { get { NotImplemented (); return null; } }
87 public virtual HttpSessionStateBase Session { get { NotImplemented (); return null; } }
89 public virtual bool SkipAuthorization { get { NotImplemented (); return false; } set { NotImplemented (); } }
91 public virtual DateTime Timestamp { get { NotImplemented (); return DateTime.MinValue; } }
93 public virtual TraceContext Trace { get { NotImplemented (); return null; } }
95 public virtual IPrincipal User { get { NotImplemented (); return null; } set { NotImplemented (); } }
97 public virtual void AddError (Exception errorInfo)
102 public virtual void ClearError ()
107 public virtual object GetGlobalResourceObject (string classKey, string resourceKey)
113 public virtual object GetGlobalResourceObject (string classKey, string resourceKey, CultureInfo culture)
119 public virtual object GetLocalResourceObject (string virtualPath, string resourceKey)
125 public virtual object GetLocalResourceObject (string virtualPath, string resourceKey, CultureInfo culture)
131 public virtual object GetSection (string sectionName)
137 public virtual object GetService (Type serviceType)
142 public virtual void RemapHandler (IHttpHandler handler)
146 public virtual void RewritePath (string path)
151 public virtual void RewritePath (string path, bool rebaseClientPath)
156 public virtual void RewritePath (string filePath, string pathInfo, string queryString)
161 public virtual void RewritePath (string filePath, string pathInfo, string queryString, bool setClientFilePath)
165 public virtual void SetSessionStateBehavior (SessionStateBehavior sessionStateBehavior)