Frame

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

Methods

Frame constructor

__construct( $frame = null) 

Arguments

$frame

mixed | null

addHeader

addHeader( $key,  $value) : $this

Arguments

$key

String

$value

String

Response

$this

getAck

getAck() : string

Response

string

getBody

getBody() : \io\vertx\jphp\core\buffer\Buffer

getBodyAsString

getBodyAsString() : string

Response

string

getCommand

getCommand() : string

Response

string

getDestination

getDestination() : string

Response

string

getHeaders

getHeaders() : array

Response

array

getId

getId() : string

Response

string

getReceipt

getReceipt() : string

Response

string

getTransaction

getTransaction() : string

Response

string

setBody

setBody( $body) : $this

Arguments

$body

Buffer

Response

$this

setCommand

setCommand( $command) : $this

Arguments

$command

string

Response

$this

setDestination

setDestination( $destination) : $this

Arguments

$destination

string

Response

$this

setHeaders

setHeaders( $headers) : $this

Arguments

$headers

string

Response

$this

setId

setId( $id) : $this

Arguments

$id

string

Response

$this

setTransaction

setTransaction( $transaction) : $this

Arguments

$transaction

string

Response

$this