RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPageDispatcher Class

TPageDispatcher dispatches incoming HTTP request messages in a WebSnap application.

Pascal
TPageDispatcher = class(TCustomPageDispatcher);
C++
class TPageDispatcher : public TCustomPageDispatcher;

Add a single TPageDispatcher object to the Web application module of a WebSnap application. Typically, the WebSnap application wizard adds a page dispatcher to the Web application module that it creates. 

A WebSnap application only requires a single page dispatcher. The page 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 a URL with a pathinfo portion, the page dispatcher forwards the request to the Web page module identified by its DefaultPage property. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!