coldfusion.gateway.CFEvent
The Gateway class sends and receives CFEvent
instances to communicate with the ColdFusion listener CFC or application. The CFEvent
instances correspond to CFML CFEvent structures that ColdFusion application listener CFC methods receive and contain the message structures that ColdFusion application code sends to the gateway.
GatewayServices.
addEvent method.
The CFEvent Class extends the java.util.Hashtable class and has the following methods:
Methods | Description |
---|---|
CFEvent(String gatewayID) |
|
|
Returns the gateway ID (set in the CFEvent constructor). |
void setCFCMethod(String method) |
Sets or gets the name of the CFC method that receives an incoming message. |
void setCFCPath(String path) |
Sets or gets the path to the application listener CFC that processes the event. |
void setCFCTimeout(String seconds) |
Sets or gets the time-out, in seconds, for the listener CFC to process the event request. |
void setData(Map data) |
Sets or gets the event data structure, which contains the message contents and any other gateway-specific information. |
void setGatewayType(String type) |
Sets or gets the event gateway type identifier, such as SMS. |
void setOriginatorID(String id) |
Sets or gets the gateway- or protocol-specific Identity of the originator of a message. |