Whatever message this page gives is out now! Go check it out!

getGatewayServices

Last update:
May 18, 2026

Description

Static method that returns the GatewayServices object. Gateway code can call this method at any time, if necessary.

Category

Event Gateway Development

Syntax

GatewayServices getGatewayServices()

See also

GatewayServices class  in the Developing ColdFusion Applications

Returns

The GatewayServices object.

Usage

Gateway constructors can call this method to get a convenient reference to the GatewayServices class and its methods.

Example

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);

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page