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 Interface
__toString(
)
:
fromFrame(
string $frame
)
:
$this
Accepts a frame and deconstructs the frame into its' component parts
getAutoContentLength(
)
:
boolean
Get 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.
getBody(
)
:
$this
Return the body for this frame returns false if the body does not exist
getCommand(
)
:
$this
Return the command for this frame return false if the command does not exist
getHeader(
string $header
)
:
$string
Returns a value for a header returns false if the header does not exist
getHeaders(
)
:
array
Get the headers
setAutoContentLength(
boolean $auto
)
:
$this;
setAutoContentLength()
Set the value on or off.
setBody(
string|null $body
)
:
$this
Set the body for this frame returns false if the body does not exist
Set to null for no body.
setCommand(
$command
)
:
$this
Set the body for this frame returns false if the body does not exist
setHeader(
string $header, string $value
)
:
$this
Returns a value for a header returns false if the header does not exist
setHeaders(
array $headers
)
:
$this
Set the headers
Throws an exception if the array values are not strings.
toFrame(
)
:
string
Takes the current parameters and returns a Stomp Frame