Represents a STOMP frame. STOMP frames are structured as follows. It starts by a <code>command</code>, followed by a set of headers. Then the frame may have a body and is finished by a <code>0</code> byte. This class represents this structure and provide access to the different parts.
This class is NOT thread-safe.
package |
Default |
---|
__construct( $frame = null)
mixed | null
addHeader( $key, $value) : $this
String
String
$this
getAck() : string
string
getBodyAsString() : string
string
getCommand() : string
string
getDestination() : string
string
getHeaders() : array
array
getId() : string
string
getReceipt() : string
string
getTransaction() : string
string
setBody( $body) : $this
Buffer
$this
setCommand( $command) : $this
string
$this
setDestination( $destination) : $this
string
$this
setHeaders( $headers) : $this
string
$this
setId( $id) : $this
string
$this
setTransaction( $transaction) : $this
string
$this