mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
This commit is contained in:
parent
41d42ff9b9
commit
a1a49ea538
@ -62,6 +62,7 @@ type
|
||||
function GetBody: string;
|
||||
procedure SetBody(const Value: string);
|
||||
function GetHeaders: IStompHeaders;
|
||||
function MessageID: string;
|
||||
end;
|
||||
|
||||
IStompClient = interface
|
||||
@ -145,6 +146,7 @@ type
|
||||
// return '', when Key doesn't exist or Value of Key is ''
|
||||
// otherwise, return Value;
|
||||
function Output: string;
|
||||
function MessageID: string;
|
||||
property Headers: IStompHeaders read GetHeaders write SetHeaders;
|
||||
end;
|
||||
|
||||
@ -294,6 +296,11 @@ begin
|
||||
Result := FHeaders;
|
||||
end;
|
||||
|
||||
function TStompFrame.MessageID: string;
|
||||
begin
|
||||
Result := self.GetHeaders.Value(TStompHeaders.MESSAGE_ID);
|
||||
end;
|
||||
|
||||
function TStompFrame.Output: string;
|
||||
begin
|
||||
Result := FCommand + LINE_END + FHeaders.Output + LINE_END + FBody + COMMAND_END;
|
||||
|
Loading…
Reference in New Issue
Block a user