Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
This class represents a Stomp Frame
END_OF_FRAME = '\x00\n'
Details CONTENT_LENGTH = 'content-length'
Details EOL = '\n'
Details $_autoContentLength = 'null'Do the content-length automatically?
Detailsstring $_body = 'null'The body of the frame
Detailsstring $_command = 'null'The command for the frame
Detailsarray $_headers = 'array'Headers for the frame
Details__construct(
)
:
Constructor
Details__toString(
)
:
string
DetailsfromFrame(
string $frame
)
:
$thisAccepts a frame and deconstructs the frame into its component parts
DetailsgetAutoContentLength(
)
:
booleanget the status of the auto content length
If AutoContentLength is true this code will automatically put the content-length header in, even if it is already set by the user.
This is done to make the message sending more reliable.
DetailsgetBody(
)
:
false|stringReturn the body for this frame
Returns false if the body does not exist
DetailsgetCommand(
)
:
string|falseReturn the command for this frame
Return false if the command does not exist
DetailsgetHeader(
string $header
)
:
string|falseReturns a value for a header
Returns false if the header does not exist.
DetailsgetHeaders(
)
:
arrayGet the headers
DetailssetAutoContentLength(
boolean $auto
)
:
$this;setAutoContentLength()
Set the value on or off.
DetailssetBody(
string|null $body
)
:
Zend_Queue_Stomp_FrameSet the body for this frame
Set to null for no body.
DetailssetCommand(
$command
)
:
Zend_Queue_Stomp_FrameSet the body for this frame
DetailssetHeader(
string $header, string $value
)
:
Zend_Queue_Stomp_FrameSets a value for a header
DetailssetHeaders(
array $headers
)
:
$thisSet the headers
Throws an exception if the array values are not strings.
DetailstoFrame(
)
:
stringTakes the current parameters and returns a Stomp Frame
Details