This class represents a Stomp Frame
category | Zend |
---|---|
package | Zend_Queue |
subpackage | Stomp |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct()
__toString() : string
fromFrame(string $frame) : \Zend_Queue_Stomp_Frame
inherited_from | \Zend_Queue_Stomp_FrameInterface::fromFrame() |
---|---|
fluent | This method is part of a fluent interface and will return the same instance |
string
\Zend_Queue_Stomp_Frame
getAutoContentLength() : boolean
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.
inherited_from | \Zend_Queue_Stomp_FrameInterface::getAutoContentLength() |
---|
boolean
getBody() : false | string
Returns false if the body does not exist
inherited_from | \Zend_Queue_Stomp_FrameInterface::getBody() |
---|
false
string
getCommand() : string | false
Return false if the command does not exist
inherited_from | \Zend_Queue_Stomp_FrameInterface::getCommand() |
---|
string
false
getHeader(string $header) : string | false
Returns false if the header does not exist.
inherited_from | \Zend_Queue_Stomp_FrameInterface::getHeader() |
---|
string
\Zend_Queue_Exception |
---|
string
false
getHeaders() : array
inherited_from | \Zend_Queue_Stomp_FrameInterface::getHeaders() |
---|
array
setAutoContentLength(boolean $auto) : \$this;
Set the value on or off.
inherited_from | \Zend_Queue_Stomp_FrameInterface::setAutoContentLength() |
---|
boolean
\Zend_Queue_Exception |
---|
\$this;
setBody(string|null $body) : \Zend_Queue_Stomp_Frame
Set to null for no body.
inherited_from | \Zend_Queue_Stomp_FrameInterface::setBody() |
---|
string
null
\Zend_Queue_Exception |
---|
\Zend_Queue_Stomp_Frame
setCommand($command) : \Zend_Queue_Stomp_Frame
inherited_from | \Zend_Queue_Stomp_FrameInterface::setCommand() |
---|
\Zend_Queue_Exception |
---|
\Zend_Queue_Stomp_Frame
setHeader(string $header, string $value) : \Zend_Queue_Stomp_Frame
inherited_from | \Zend_Queue_Stomp_FrameInterface::setHeader() |
---|
string
string
\Zend_Queue_Exception |
---|
\Zend_Queue_Stomp_Frame
setHeaders(array $headers) : \Zend_Queue_Stomp_Frame
Throws an exception if the array values are not strings.
inherited_from | \Zend_Queue_Stomp_FrameInterface::setHeaders() |
---|---|
fluent | This method is part of a fluent interface and will return the same instance |
array
\Zend_Queue_Exception |
---|
\Zend_Queue_Stomp_Frame
toFrame() : string
inherited_from | \Zend_Queue_Stomp_FrameInterface::toFrame() |
---|
\Zend_Queue_Exception |
---|
string
$_autoContentLength
null
$_body : string
null
$_command : string
null
$_headers : array
array()
CONTENT_LENGTH = 'content-length'
END_OF_FRAME = "\x00\n"
EOL = "\n"