Amf/Value/Messaging/CommandMessage.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Amf
- Subpackage
- Value
- Version
- $Id: CommandMessage.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Amf_Value_Messaging_CommandMessage
Subscribe/unsubscribe operations result in CommandMessage transmissions, as do polling operations.
Corresponds to flex.messaging.messages.CommandMessage
Note: THESE VALUES MUST BE THE SAME ON CLIENT AND SERVER
- Parent(s)
- \Zend_Amf_Value_Messaging_AsyncMessage < \Zend_Amf_Value_Messaging_AbstractMessage
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants

POLL_OPERATION
= 2

CLIENT_SYNC_OPERATION
= 4

CLIENT_PING_OPERATION
= 5

CLUSTER_REQUEST_OPERATION
= 7

LOGIN_OPERATION
= 8
The credentials need to be Base64 encoded and stored in the
body
of the message.

LOGOUT_OPERATION
= 9

SESSION_INVALIDATE_OPERATION
= 10

MULTI_SUBSCRIBE_OPERATION
= 11
Properties


string $body
Message body
- Type
- string
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$body
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$body


string $clientId
Client identifier
- Type
- string
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$clientId
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$clientId


String $correlationId
- Type
- String
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$correlationId


string $destination
Destination
- Type
- string
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$destination
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$destination


object $headers
Message headers
- Type
- object
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$headers
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$headers


string $messageId
Message identifier
- Type
- string
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$messageId
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$messageId


int $operation = self::UNKNOWN_OPERATION
self::UNKNOWN_OPERATION
Details- Type
- int


int $timeToLive
Message TTL
- Type
- int
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$timeToLive
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$timeToLive


int $timestamp
Message timestamp
- Type
- int
- Inherited_from
- \Zend_Amf_Value_Messaging_AbstractMessage::$$timestamp
- Inherited_from
- \Zend_Amf_Value_Messaging_AsyncMessage::$$timestamp
Methods


generateId() : string
generate a unique id
Inherited from: \Zend_Amf_Value_Messaging_AbstractMessage::generateId()\Zend_Amf_Value_Messaging_AsyncMessage::generateId()Format is: ########-####-####-####-############ Where # is an uppercase letter or number example: 6D9DC7EC-A273-83A9-ABE3-00005FD752D6
Type | Description |
---|---|
string |