Habari STOMP Client for ActiveMQ 10.3
Object Pascal STOMP client library for Apache ActiveMQ
Loading...
Searching...
No Matches
BTStompEncoder.pas File Reference

Functions

RawByteString EncodeFrame (const IStompFrame AFrame, const TStompProtocolVersion AVersion)
 Converts a STOMP frame into a byte array.
RawByteString HeaderEscape (const RawByteString S, const Boolean IsCONNECTFrame, const TStompProtocolVersion Version)
 Escapes special characters in STOMP header values.

Function Documentation

◆ EncodeFrame()

RawByteString EncodeFrame ( const IStompFrame AFrame,
const TStompProtocolVersion AVersion )

Converts a STOMP frame into a byte array.

Parameters
AFramethe STOMP frame
AVersionthe STOMP protocol version
Returns
the byte array encoded frame

◆ HeaderEscape()

RawByteString HeaderEscape ( const RawByteString S,
const Boolean IsCONNECTFrame,
const TStompProtocolVersion Version )

Escapes special characters in STOMP header values.

Parameters
SThe raw header value to escape
IsCONNECTFrameWhether this is for a CONNECT frame
VersionThe STOMP protocol version being used
Returns
The escaped header value