EMS.Services.IEMSResourceRequest.Execute
Delphi
function Execute(const AContext: IEMSResourceRequestContext;
const AMethodType: TEndpointRequest.TMethod; const AResourceName: string;
const ASegments: TEMSResourceRequestSegments;
const AQueryParams: TEMSResourceRequestQueryParams;
const ARequestContent: IEMSResourceRequestContent): IEMSResourceResponseContent; overload;
function Execute(const AContext: IEMSResourceRequestContext;
AMethodType: TEndpointRequest.TMethod; const AResourceName: string;
const ASegments: TEMSResourceRequestSegments;
const AQueryParams: TEMSResourceRequestQueryParams): IEMSResourceResponseContent; overload;
C++
virtual _di_IEMSResourceResponseContent __fastcall Execute(const _di_IEMSResourceRequestContext AContext, const Ems::Resourceapi::TEndpointRequest::TMethod AMethodType, const System::UnicodeString AResourceName, const System::DynamicArray<System::UnicodeString> ASegments, const System::DynamicArray<System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> > AQueryParams, const _di_IEMSResourceRequestContent ARequestContent) = 0 /* overload */;
virtual _di_IEMSResourceResponseContent __fastcall Execute(const _di_IEMSResourceRequestContext AContext, Ems::Resourceapi::TEndpointRequest::TMethod AMethodType, const System::UnicodeString AResourceName, const System::DynamicArray<System::UnicodeString> ASegments, const System::DynamicArray<System::Generics::Collections::TPair__2<System::UnicodeString,System::UnicodeString> > AQueryParams) = 0 /* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | EMS.Services.pas EMS.Services.hpp |
EMS.Services | IEMSResourceRequest |
説明
指定されたリソース要求を実行し、その応答を返します。
Execute が受け取るパラメータは次のとおりです。
AContext
: リソース要求コンテキストです。AMethodType
: 要求メソッドです。AResourceName
: 対象リソースの名前です。ASegments
: 対象リソースの対象エンドポイントを指定する URL パスです。たとえば、対象リソースの名前が "MyResource" で、この URL パスが "foo/bar" の場合、要求のターゲットは "myresource/foo/bar" となります。AQueryParams
: 要求のクエリ パラメータです。ARequestContent
(省略可能): 要求の内容です。Put
やPost
を要求メソッドとする要求など、リモート エンドポイントに内容を送信する必要がある要求で、このパラメータを使用します。