Packagecom.acapela.vaas.advanced.events
Classpublic class ProtocolEvent
InheritanceProtocolEvent Inheritance flash.events.Event

This "backdoor" event is used to modify requests or treat responses outside of the API classes : very unusualy needed.

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.



Public Properties
 PropertyDefined 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
Public Constants
 ConstantDefined 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
Property detail
dataproperty
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
Constant detail
REQUEST_PENDINGconstant
public static const REQUEST_PENDING:String = "requestPending"

The ProtocolEvent.REQUEST_PENDING constant defines the value of the type property of an requestPending event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
dataThe URLVariables containing the request or the response.
targetThe Connector instance that generated it.

See also

RESPONSE_PENDINGconstant 
public static const RESPONSE_PENDING:String = "responsePending"

The ProtocolEvent.RESPONSE_PENDING constant defines the value of the type property of an responsePending event object.

This event has the following properties:
PropertyDescription
bubblesfalse
cancelablefalse
dataThe URLVariables containing the request or the response.
targetThe Connector instance that generated it.

See also