Description
Instantiates a gateway.
Category
Event Gateway Development
Syntax
public void gatewayName() |
See also
setGatewayID, Class constructor in Building an event gateway in the Developing ColdFusion Applications.
Parameters
Parameter |
Description |
---|---|
id |
The identifier for the gateway instance |
configFile |
The absolute path to the gateway configuration file. |
Usage
If your gateway requires a configuration file, use the constructor with two parameters. Otherwise, you can use either the default constructor or the single parameter version; ColdFusion always uses the setGatewayID method to set the ID.
Example
The following example shows the two argument constructor implemented in the ColdFusion SocketGateway class:
public SocketGateway(String id, String configpath) { |