Files
mono/mcs/class/System.Web/System.Web.UI/PageHandlerFactory.cs
T
Marek Habersack 296973051b 2008-02-07 Marek Habersack <[email protected]>
* BuildManager.cs: check for virtualPath existence before
	attempting to compile the assemblies. Fixes bug #359465
2008-02-07  Marek Habersack  <[email protected]>

	* HttpException.cs: moved several strings to constants, for easier
	maintenance. 
	Added 3 new constructors which let the caller to set the exception
	description.
	The Description property is now settable.
	The stack trace at the bottom of the file is written after the
	terminating </html>, inside a HTML comment. Format changed to
	match MS.NET.
	Error 404 is handled in a special way, to match the output with
	MS.NET.

	* HttpContext.cs, StaticFileHandler.cs, HttpApplication.cs: use
	the new HttpException constructor for 404.
2008-02-07  Marek Habersack  <[email protected]>

	* PageHandlerFactory.cs: call PageParser.GetCompiledPageInstance
	only - that method calls the appropriate APIs for 1.1 and 2.0
	profiles.

svn path=/trunk/mcs/; revision=95135
2008-02-07 13:18:35 +00:00

49 lines
1.6 KiB
C#

//
// System.Web.UI.PageHandlerFactory
//
// Authors:
// Gonzalo Paniagua Javier ([email protected])
//
// (C) 2002 Ximian, Inc (http://www.ximian.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.
//
using System.Web;
using System.Web.Compilation;
namespace System.Web.UI
{
class PageHandlerFactory : IHttpHandlerFactory
{
public virtual IHttpHandler GetHandler (HttpContext context, string requestType, string url, string path)
{
return PageParser.GetCompiledPageInstance (url, path, context);
}
public virtual void ReleaseHandler (IHttpHandler handler)
{
}
}
}