Datasnap.DSHTTP.TDSRESTServer.DoCommandOtherContext
Delphi
procedure DoCommandOtherContext(AContext: TDSHTTPContext; ARequestInfo: TDSHTTPRequest;
AResponseInfo: TDSHTTPResponse; const ARequest: string); virtual;
C++
virtual void __fastcall DoCommandOtherContext(Datasnap::Dshttpcommon::TDSHTTPContext* AContext, Datasnap::Dshttpcommon::TDSHTTPRequest* ARequestInfo, Datasnap::Dshttpcommon::TDSHTTPResponse* AResponseInfo, const System::UnicodeString ARequest);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
class protected | Datasnap.DSHTTP.pas Datasnap.DSHTTP.hpp |
Datasnap.DSHTTP | TDSRESTServer |
Description
Virtual method that can be overridden in order to potentially handle contexts other than datasnap.
The DoCommandOtherContext virtual method sets the response's ResponseNo to 404 (meaning that no appropriate context is found), sets ResponseText to an error message, and also sets the response's CloseConnection to True.
DoCommandOtherContext can be overridden in subclasses in order to potentially handle contexts other than datasnap.