Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Constructor. | |
getAutoContentLength () | |
get the status of the auto content length | |
setAutoContentLength ($auto) | |
setAutoContentLength() | |
getHeaders () | |
Get the headers. | |
setHeaders (array $headers) | |
Set the headers. | |
setHeader ($header, $value) | |
Sets a value for a header. | |
getHeader ($header) | |
Returns a value for a header. | |
getBody () | |
Return the body for this frame. | |
setBody ($body) | |
Set the body for this frame. | |
getCommand () | |
Return the command for this frame. | |
setCommand ($command) | |
Set the body for this frame. | |
toFrame () | |
Takes the current parameters and returns a Stomp Frame. | |
__toString () | |
fromFrame ($frame) | |
Accepts a frame and deconstructs the frame into its component parts. | |
Public Attributes | |
const | END_OF_FRAME = "\x00\n" |
const | CONTENT_LENGTH = 'content-length' |
const | EOL = "\n" |
Protected Attributes | |
$_headers = array() | |
$_command = null | |
$_body = null | |
$_autoContentLength = null | |
Do the content-length automatically? | |
__construct | ( | ) |
Constructor.
__toString | ( | ) |
fromFrame | ( | $frame | ) |
Accepts a frame and deconstructs the frame into its component parts.
string | $frame | - a stomp frame |
Implements Zend_Queue_Stomp_FrameInterface.
getAutoContentLength | ( | ) |
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.
Implements Zend_Queue_Stomp_FrameInterface.
getBody | ( | ) |
Return the body for this frame.
Returns false if the body does not exist
Implements Zend_Queue_Stomp_FrameInterface.
getCommand | ( | ) |
Return the command for this frame.
Return false if the command does not exist
Implements Zend_Queue_Stomp_FrameInterface.
getHeader | ( | $header | ) |
Returns a value for a header.
Returns false if the header does not exist.
string | $header |
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
getHeaders | ( | ) |
setAutoContentLength | ( | $auto | ) |
Set the value on or off.
boolean | $auto |
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
setBody | ( | $body | ) |
Set the body for this frame.
Set to null for no body.
string | null | $body |
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
setCommand | ( | $command | ) |
Set the body for this frame.
string|null |
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
setHeader | ( | $header, | |
$value | |||
) |
Sets a value for a header.
string | $header | |
string | $value |
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
setHeaders | ( | array | $headers | ) |
Set the headers.
Throws an exception if the array values are not strings.
array | $headers |
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
toFrame | ( | ) |
Takes the current parameters and returns a Stomp Frame.
Zend_Queue_Exception |
Implements Zend_Queue_Stomp_FrameInterface.
|
protected |
Do the content-length automatically?
|
protected |
|
protected |
|
protected |
const CONTENT_LENGTH = 'content-length' |
const END_OF_FRAME = "\x00\n" |
const EOL = "\n" |