|
<< Click to Display Table of Contents >> Navigation: Classes > THandlers |
This class is responsible for keeping a list of registered handlers for the IntraWeb application. A content handler is similar to TURLMappers in previous IntraWeb versions. The application developer creates an instance of a TContentBase descendant and registers it using the THandlers class. When a request is received, the IntraWeb server searches for a match in the list. If a match is found, the request is then passed to the TContentBase descendand. There are a few demos in our CodePlex repository showing the basic usage of THandlers and TContentBase classes. All THandlers methods are class methods, meaning that you don't need to create an instance of THandlers class.
SIGNATURE=IW.Content.Handlers.THandlers
ETYPE=Class
Declaration:
Delphi: |
public THandlers = class; |
C++: |
public: class THandlers; |
Unit: IW.Content.Handlers.pas
Description: This is static because Delphi can init in weird orders and the global var is often still nil on add with direct access to global. Also this is a better design.