RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomPageDispatcher Class

Dispatches incoming HTTP request messages in a WebSnap application.

Pascal
TCustomPageDispatcher = class(TBaseRequestHandler, IPageDispatcher);
C++
class TCustomPageDispatcher : public TBaseRequestHandler, public IPageDispatcher;

WebDisp

TCustomPageDispatcher is the base class for components that locate the appropriate page module for handling an incoming HTTP message and retrieve the content that the identified page module creates for the corresponding response message. Typically, the WebSnap application wizard adds a TCustomPageDispatcher descendant to the Web application module that it creates. 

A WebSnap application only requires a single page dispatcher. The dispatcher examines all incoming HTTP request messages, checking the pathInfo portion of the URL to which a request is addressed for the name of a registered Web page module. It then forwards the request to the matching Web page module so that the page module can handle the request and produce the content of a response. If the request is not addressed to an URL with a pathinfo portion, the page dispatcher forwards the request to the Web page module identified by its DefaultPage property. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!