API Documentation

Queue/Stomp/Frame.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Queue
subpackage
Stomp
version
$Id: Frame.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Queue_Stomp_Frame

Description

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.

Zend_Queue_Stomp_Frame

Implements
Zend_Queue_Stomp_FrameInterface
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Queue
subpackage
Stomp
Constants
END_OF_FRAME
CONTENT_LENGTH
EOL
Properties
$_headers
$_command
$_body
$_autoContentLength
Methods
__construct
getAutoContentLength
setAutoContentLength
getHeaders
setHeaders
setHeader
getHeader
getBody
setBody
getCommand
setCommand
toFrame
__toString
fromFrame

Description

This class represents a Stomp Frame

Constants

END_OF_FRAME

 END_OF_FRAME = '\x00\n'

Details

value
\x00\n

CONTENT_LENGTH

 CONTENT_LENGTH = 'content-length'

Details

value
content-length

EOL

 EOL = '\n'

Details

value
\n

Properties

$_autoContentLength

 $_autoContentLength = 'null'

Do the content-length automatically?

Details

visibility
protected
default
null
final
false
static
false

$_body

string $_body = 'null'

The body of the frame

Details

$_body
string
visibility
protected
default
null
final
false
static
false

$_command

string $_command = 'null'

The command for the frame

Details

$_command
string
visibility
protected
default
null
final
false
static
false

$_headers

array $_headers = 'array'

Headers for the frame

Details

$_headers
array
visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct( ) :

Constructor

Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

Output
string
Details
visibility
public
final
false
static
false
see
toFrame()

fromFrame

fromFrame( string $frame ) : $this

Accepts a frame and deconstructs the frame into its component parts

Arguments
$frame
string
- a stomp frame
Output
$this
Details
visibility
public
final
false
static
false

getAutoContentLength

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.

Output
boolean
Details
visibility
public
final
false
static
false

getBody

getBody( ) : false|string

Return the body for this frame

Returns false if the body does not exist

Output
false|string
Details
visibility
public
final
false
static
false

getCommand

getCommand( ) : string|false

Return the command for this frame

Return false if the command does not exist

Output
string|false
Details
visibility
public
final
false
static
false

getHeader

getHeader( string $header ) : string|false

Returns a value for a header

Returns false if the header does not exist.

Arguments
$header
string
Output
string|false
Details
visibility
public
final
false
static
false
throws

getHeaders

getHeaders( ) : array

Get the headers

Output
array
Details
visibility
public
final
false
static
false

setAutoContentLength

setAutoContentLength( boolean $auto ) : $this;

setAutoContentLength()

Set the value on or off.

Arguments
$auto
boolean
Output
$this;
Details
visibility
public
final
false
static
false
throws

setBody

setBody( string|null $body ) : Zend_Queue_Stomp_Frame

Set the body for this frame

Set to null for no body.

Arguments
$body
stringnull
Details
visibility
public
final
false
static
false
throws

setCommand

setCommand(  $command ) : Zend_Queue_Stomp_Frame

Set the body for this frame

Arguments
$command
string|null
Details
visibility
public
final
false
static
false
throws

setHeader

setHeader( string $header, string $value ) : Zend_Queue_Stomp_Frame

Sets a value for a header

Arguments
$header
string
$value
string
Details
visibility
public
final
false
static
false
throws

setHeaders

setHeaders( array $headers ) : $this

Set the headers

Throws an exception if the array values are not strings.

Arguments
$headers
array
Output
$this
Details
visibility
public
final
false
static
false
throws

toFrame

toFrame( ) : string

Takes the current parameters and returns a Stomp Frame

Output
string
Details
visibility
public
final
false
static
false
throws
Documentation was generated by DocBlox.