EMS.Services.IEMSResourceRequest.CreateRequestContent
Delphi
function CreateRequestContent(const AJSON: TJSONValue): IEMSResourceRequestContent; overload;
function CreateRequestContent(const AContentType: string; const AStream: TStream): IEMSResourceRequestContent; overload;
function CreateRequestContent(const AContentType: string; const ABytes: TBytes): IEMSResourceRequestContent; overload;
C++
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(System::Json::TJSONValue* const AJSON) = 0 /* overload */;
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(const System::UnicodeString AContentType, System::Classes::TStream* const AStream) = 0 /* overload */;
virtual _di_IEMSResourceRequestContent __fastcall CreateRequestContent(const System::UnicodeString AContentType, const System::DynamicArray<System::Byte> ABytes) = 0 /* overload */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | EMS.Services.pas EMS.Services.hpp |
EMS.Services | IEMSResourceRequest |
Beschreibung
Erstellt den Nutzdatenkontext einer EMS-Ressourcenanforderung.
Die Methode CreateRequestContent ist überladen:
- Die erste überladene Methode erstellt die Nutzdaten für die Anforderung aus einem JSON-Objekt
AJSON
. Der Inhaltstyp dieser Anforderung istapplication/json
. - Die zweite überladene Methode erstellt die Nutzdaten für die Anforderung aus dem Stream
AStream
. Gibt den Inhaltstyp (AContentType
) der Nutzdaten an. - Die dritte überladene Methode erstellt die Nutzdaten für die Anforderung aus dem Byte-Array
ABytes
. Gibt den Inhaltstyp (AContentType
) der Nutzdaten an.
CreateRequestContent gibt einen IEMSResourceRequestContent zum Lesen der Antwort aus der Ressource zurück.