2009-06-16 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Tue, 16 Jun 2009 00:15:48 +0000 (00:15 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Tue, 16 Jun 2009 00:15:48 +0000 (00:15 -0000)
* net_4_0_System.Web.dll.sources:
Added System.Web.Routing/PageRouteHandler.cs

2009-06-16  Marek Habersack  <mhabersack@novell.com>

* PageRouteHandler.cs: added

svn path=/trunk/mcs/; revision=136187

mcs/class/System.Web/ChangeLog
mcs/class/System.Web/System.Web.Routing/ChangeLog [new file with mode: 0644]
mcs/class/System.Web/System.Web.Routing/PageRouteHandler.cs [new file with mode: 0644]
mcs/class/System.Web/net_4_0_System.Web.dll.sources

index 7be8ec9ec41d1bbd3ef2893c1fb5edf2f56ad452..7a004d77a35bc1e1bd9852efb688430ed276942d 100644 (file)
@@ -3,6 +3,7 @@
        * net_4_0_System.Web.dll.sources: added. System.Web.Routing and
        System.Web.Abstractions are part of System.Web.dll in the 4.0
        profile.
+       Added System.Web.Routing/PageRouteHandler.cs
 
 2009-06-04  Marek Habersack  <mhabersack@novell.com>
 
diff --git a/mcs/class/System.Web/System.Web.Routing/ChangeLog b/mcs/class/System.Web/System.Web.Routing/ChangeLog
new file mode 100644 (file)
index 0000000..e3a8e09
--- /dev/null
@@ -0,0 +1,4 @@
+2009-06-16  Marek Habersack  <mhabersack@novell.com>
+
+       * PageRouteHandler.cs: added
+
diff --git a/mcs/class/System.Web/System.Web.Routing/PageRouteHandler.cs b/mcs/class/System.Web/System.Web.Routing/PageRouteHandler.cs
new file mode 100644 (file)
index 0000000..1dbb246
--- /dev/null
@@ -0,0 +1,72 @@
+//
+// System.Web.Compilation.BuildManager
+//
+// Authors:
+//      Marek Habersack (mhabersack@novell.com)
+//
+// (C) 2009 Novell, Inc (http://www.novell.com)
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#if NET_4_0
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Text;
+using System.Web;
+
+namespace System.Web.Routing
+{
+       public class PageRouteHandler : IRouteHandler
+       {
+               public bool CheckPhysicalUrlAccess { get; private set; }
+               
+               public string VirtualPath { get; private set; }
+               
+               public PageRouteHandler (string virtualPath)
+                       : this (virtualPath, true)
+               {
+               }
+
+               public PageRouteHandler (string virtualPath, bool checkPhysicalUrlAccess)
+               {
+                       VirtualPath = virtualPath;
+                       CheckPhysicalUrlAccess = checkPhysicalUrlAccess;
+               }
+
+               [MonoTODO]
+               public virtual IHttpHandler GetHttpHandler (RequestContext requestContext)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public string GetSubstitutedVirtualPath (RequestContext requestContext)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+#endif
\ No newline at end of file
index c35a7c9ae3ca3676284f3edf2989903d0e378fe0..ba37917bdfaaae02cfe345f07b29b2ac06c389b7 100644 (file)
@@ -406,6 +406,7 @@ System.Web.Profile/SqliteProfileProvider.cs
 System.Web.Profile/SqlProfileProvider.cs
 System.Web.Properties/TranslationProperties.Designer.cs
 System.Web/QueueManager.cs
+System.Web.Routing/PageRouteHandler.cs
 System.Web.Security/AspNetDBSchemaChecker.cs
 System.Web.Security/ActiveDirectoryConnectionProtection.cs
 System.Web.Security/ActiveDirectoryMembershipProvider.cs