Description
Identifies the originator of an incoming message. Some gateway types also use this field for the destination of an outgoing message.
Category
Event Gateway Development
Syntax
String getOriginatorID() |
See also
setOriginatorID, CFML CFEvent structure, CFEvent class in Event gateway elements in the Developing ColdFusion Applications
Returns
The protocol-specific identifier of the message originator, or null.
Example
The outgoingMessage method of the SocketGateway example gateway uses the getOriginatorID method to determine the destination of an outgoing message. This way, a listener CFC that sends a response back to the originator does not have to explicitly set a destination in the return variable. If the field is empty, (as it is in messages sent by the CFML SendGatewayMessage function) the gateway tries to get the destination from the CFevent data field.
public String outgoingMessage(coldfusion.eventgateway.CFEvent cfmsg) |