\Zend_Amf_Value_MessageBody

An AMF Message contains information about the actual individual transaction that is to be performed. It specifies the remote operation that is to be performed; a local (client) operation to be invoked upon success; and, the data to be used in the operation.

This Message structure defines how a local client would invoke a method/operation on a remote server. Additionally, the response from the Server is structured identically.

Summary

Methods
Properties
Constants
__construct()
getTargetUri()
setTargetUri()
getResponseUri()
setResponseUri()
getData()
setData()
setReplyMethod()
No public properties found
No constants found
No protected methods found
$_targetUri
$_responseUri
$_data
N/A
No private methods found
No private properties found
N/A

Properties

$_targetUri

$_targetUri : string

A string describing which operation, function, or method is to be remotley invoked.

Type

string

$_responseUri

$_responseUri : string

Universal Resource Identifier that uniquely targets the originator's Object that should receive the server's response. The server will use this path specification to target the "OnResult()" or "onStatus()" handlers within the client. For Flash, it specifies an ActionScript Object path only. The NetResponse object pointed to by the Response Uri contains the connection state information. Passing/specifying this provides a convenient mechanism for the client/server to share access to an object that is managing the state of the shared connection.

Since the server will use this field in the event of an error, this field is required even if a successful server request would not be expected to return a value to the client.

Type

string

$_data

$_data : string

Contains the actual data associated with the operation. It contains the client's parameter data that is passed to the server's operation/method.

When serializing a root level data type or a parameter list array, no name field is included. That is, the data is anonomously represented as "Type Marker"/"Value" pairs. When serializing member data, the data is represented as a series of "Name"/"Type"/"Value" combinations.

For server generated responses, it may contain any ActionScript data/objects that the server was expected to provide.

Type

string

Methods

__construct()

__construct(string  $targetUri, string  $responseUri, string  $data) : void

Constructor

Parameters

string $targetUri
string $responseUri
string $data

getTargetUri()

getTargetUri() : string

Retrieve target Uri

Returns

string

setTargetUri()

setTargetUri(string  $targetUri) : \Zend_Amf_Value_MessageBody

Set target Uri

Parameters

string $targetUri

Returns

\Zend_Amf_Value_MessageBody

getResponseUri()

getResponseUri() : string

Get target Uri

Returns

string

setResponseUri()

setResponseUri(string  $responseUri) : \Zend_Amf_Value_MessageBody

Set response Uri

Parameters

string $responseUri

Returns

\Zend_Amf_Value_MessageBody

getData()

getData() : string

Retrieve response data

Returns

string

setData()

setData(mixed  $data) : \Zend_Amf_Value_MessageBody

Set response data

Parameters

mixed $data

Returns

\Zend_Amf_Value_MessageBody

setReplyMethod()

setReplyMethod(string  $methodName) : \Zend_Amf_Value_MessageBody

Set reply method

Parameters

string $methodName

Returns

\Zend_Amf_Value_MessageBody