Habari STOMP Client for ActiveMQ 9.4
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
AVersionthe STOMP protocol version
AFramethe STOMP frame
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