Datasnap.DSHTTP.TDSRESTServer.DoCommandOtherContext

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: class protected
Source:
Datasnap.DSHTTP.pas
Datasnap.DSHTTP.hpp
Unit: Datasnap.DSHTTP
Parent: TDSRESTServer

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);

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.

See Also