Static method that returns the GatewayServices object. Gateway code can call this method at any time, if required.
Event Gateway Development
GatewayServices getGatewayServices()
"GatewayServices class" in the ColdFusion Developer's Guide
The GatewayServices object.
Gateway constructors can call this method to get a convenient reference to the GatewayServices class and its methods.
The following Socket gateway constructor code sets the GatewayServices variable:
public SocketGateway(String id) { gatewayID = id; gatewayService = GatewayServices.getGatewayServices(); }
Calls to GatewayServices methods, such as the following, use the returned value.
boolean sent = gatewayService.addEvent(event);