| Package | com.acapela.vaas.advanced.events |
| Class | public class ProtocolEvent |
| Inheritance | ProtocolEvent flash.events.Event |
It is dispatched by the Connector class when an operation related to communication with the VaaS platform is about to be executed.
It could be when a request is about to be sended or when a response was just received.
If Connector.synthesizer.responseType is configured to RESPONSE_AS_INFO, a ProtocolEvent will only be dispatched when sending the request.
To receive this events, add an appriate event listener to the Connector instance with REQUEST_PENDING or RESPONSE_PENDING type.
| Property | Defined by | ||
|---|---|---|---|
| data : URLVariables [read-only]
The URLVariables containing the request that is about to be sent or the response that was just received (depending on the type of event).
| ProtocolEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| REQUEST_PENDING : String = "requestPending" [static]
The ProtocolEvent.REQUEST_PENDING constant defines the value of the type property of an
requestPending event object. | ProtocolEvent | ||
| RESPONSE_PENDING : String = "responsePending" [static]
The ProtocolEvent.RESPONSE_PENDING constant defines the value of the type property of an
responsePending event object. | ProtocolEvent | ||
| data | property |
data:URLVariables [read-only]The URLVariables containing the request that is about to be sent or the response that was just received (depending on the type of event).
Implementation public function get data():URLVariables
| REQUEST_PENDING | constant |
public static const REQUEST_PENDING:String = "requestPending"
The ProtocolEvent.REQUEST_PENDING constant defines the value of the type property of an requestPending event object.
| Property | Description |
|---|---|
| bubbles | false |
| cancelable | false |
| data | The URLVariables containing the request or the response. |
| target | The Connector instance that generated it. |
See also
| RESPONSE_PENDING | constant |
public static const RESPONSE_PENDING:String = "responsePending"
The ProtocolEvent.RESPONSE_PENDING constant defines the value of the type property of an responsePending event object.
| Property | Description |
|---|---|
| bubbles | false |
| cancelable | false |
| data | The URLVariables containing the request or the response. |
| target | The Connector instance that generated it. |
See also