Queue/Stomp/Frame.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
-
New BSD License
- Package
- Zend_Queue
- Subpackage
- Stomp
- Version
- $Id: Frame.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Queue_Stomp_Frame
Package: Zend\Queue\StompThis class represents a Stomp Frame
- Implements
- \Zend_Queue_Stomp_FrameInterface
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
-
New BSD License
Constants


CONTENT_LENGTH
= 'content-length'
Properties



$_autoContentLength = nullDo the content-length automatically?
Default valuenullDetails
- Type
- n/a



string $_command = null
The command for the frame
Default valuenullDetails
- Type
- string
Methods



fromFrame(string $frame) : \Zend_Queue_Stomp_FrameAccepts a frame and deconstructs the frame into its component parts
Parameters
| Name |
Type |
Description |
| $frame |
string |
|
Returns
Details
- Fluent
- This method is part of a fluent interface and will return the same instance



getAutoContentLength() : 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.
Returns



getBody() : false | stringReturn the body for this frame
Returns false if the body does not exist
Returns
| Type |
Description |
| false | string |
|



getCommand() : string | falseReturn the command for this frame
Return false if the command does not exist
Returns
| Type |
Description |
| string | false |
|



getHeader(string $header) : string | falseReturns a value for a header
Returns false if the header does not exist.
Parameters
| Name |
Type |
Description |
| $header |
string |
|
Returns
| Type |
Description |
| string | false |
|
Throws



setCommand( $command) : \Zend_Queue_Stomp_FrameSet the body for this frame
Parameters
| Name |
Type |
Description |
| $command |
|
string|null |
Returns
Throws



setHeader(string $header, string $value) : \Zend_Queue_Stomp_FrameSets a value for a header
Parameters
| Name |
Type |
Description |
| $header |
string |
|
| $value |
string |
|
Returns
Throws