TestHttpHandlerBase Class |
A base class for implementing simple test pages as HTTP handlers.
Inheritance Hierarchy
Namespace: PDTec.IceNet.Web.UtilsAssembly: PDTec.IceNet.Web (in PDTec.IceNet.Web.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic abstract class TestHttpHandlerBase : IceNetHttpHandler
The TestHttpHandlerBase type exposes the following members.
Constructors
Properties
Methods
| Name | Description |
---|
 | CheckAuthorization(String, Int32) | (Inherited from IceNetHttpHandler.) |
 | CheckAuthorization(IFolder, Int32) | (Inherited from IceNetHttpHandler.) |
 | CheckAuthorization(IObject, Int32) | (Inherited from IceNetHttpHandler.) |
 | CheckAuthorization(IPackage, Int32) | (Inherited from IceNetHttpHandler.) |
 | CheckAuthorization(IParty, Int32) | (Inherited from IceNetHttpHandler.) |
 | CheckAuthorization(AuthorizedItemType, String, Int32) | (Inherited from IceNetHttpHandler.) |
 | CheckQualification(IFolder, String) | (Inherited from IceNetHttpHandler.) |
 | CheckQualification(IObject, String) | (Inherited from IceNetHttpHandler.) |
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
 | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
 | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | HasAuthorization(String, Int32) | (Inherited from IceNetHttpHandler.) |
 | HasAuthorization(IFolder, Int32) | (Inherited from IceNetHttpHandler.) |
 | HasAuthorization(IObject, Int32) | (Inherited from IceNetHttpHandler.) |
 | HasAuthorization(IPackage, Int32) | (Inherited from IceNetHttpHandler.) |
 | HasAuthorization(IParty, Int32) | (Inherited from IceNetHttpHandler.) |
 | HasAuthorization(AuthorizedItemType, String, Int32) | (Inherited from IceNetHttpHandler.) |
 | HasQualification(IFolder, String) | (Inherited from IceNetHttpHandler.) |
 | HasQualification(IObject, String) | (Inherited from IceNetHttpHandler.) |
 | Html | (Inherited from IceNetHttpHandler.) |
 | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
 | ProcessRequest |
Implements processing of HTTP Web requests.
This method is used internally.
(Overrides IceNetHttpHandlerProcessRequest(HttpContext).) |
 | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Examples
This example shows how to implement a test page HTTP handler
based on TestHttpHandlerBase. The following code
is stored in a test.ashx file.
<%@ WebHandler Language="C#" Class="test" %>
using System;
using System.Collections;
using System.ComponentModel;
using System.Web;
using PDTec.IceNet.Web.Utils;
public class test : TestHttpHandlerBase
{
[Action(UrlParam="env")]
[Description("Lists the serverside environment.")]
public void ActionEnv(HttpContext context)
{
context.Response.ContentType = "text/plain";
IDictionary dcEnv = Environment.GetEnvironmentVariables();
foreach (string key in dcEnv.Keys)
{
context.Response.Write(string.Format("Env[{0}] = [{1}]\n", key, dcEnv[key]));
}
}
}
See Also