Web.HTTPApp.TWebActionItem.Enabled
Delphi
property Enabled: Boolean read FEnabled write SetEnabled default True;
C++
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Web.HTTPApp.pas Web.HTTPApp.hpp |
Web.HTTPApp | TWebActionItem |
Description
Indicates whether the action item can respond to HTTP request messages that match its MethodType and PathInfo properties.
Set Enabled to false to disable an action item. TWebDispatcher will ignore disabled action items when it looks for an action item to handle a request.
When an action item is chosen as the default action item, the value of its Enabled property is ignored. Thus, if an action item sets Enabled to false and Default to true, TWebDispatcher will first look for a match with any other action item, even if the PathInfo and MethodType of the default action item match the request perfectly. Then, only after all other action items have been rejected, the TWebDispatcher selects the default action item. If the default action item is enabled, it may be selected before all other action items have been considered because the MethodType and PathInfo match the request.