TestHttpHandlerBase Class |
Namespace: PDTec.IceNet.Web.Utils
public abstract class TestHttpHandlerBase : IceNetHttpHandler
The TestHttpHandlerBase type exposes the following members.
| Name | Description | |
|---|---|---|
| TestHttpHandlerBase | Initializes a new instance of the TestHttpHandlerBase class |
| Name | Description | |
|---|---|---|
| IceNetApplication | Obsolete. (Inherited from IceNetHttpHandler.) | |
| IceNetHttpApplicationInstance | (Inherited from IceNetHttpHandler.) | |
| IceNetUserName | (Inherited from IceNetHttpHandler.) | |
| IsReusable |
Indicates whether another request can reuse the HTTP handler instance.
This property is used internally.
(Overrides IceNetHttpHandlerIsReusable.) | |
| Repository | (Inherited from IceNetHttpHandler.) |
| 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.) |
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])); } } }