public class ServiceListenerExample extends Object implements InboundCallListener, NetworkStatusListener, GatewayStatusListener, InboundMessageListener, OutboundMessageListener, NetworkCellListener
Constructor and Description |
---|
ServiceListenerExample(String port) |
Modifier and Type | Method and Description |
---|---|
void |
gatewayStatusEvent(String gatewayName,
GatewayStatusEvent status)
Is called when a gateway status changed
|
void |
inboundCallEvent(String gatewayName,
CallEvent callEvent)
Is called when a inbound call is detected
|
void |
inboundMessageEvent(String gatewayName,
InboundMessageEvent inboundMessageEvent)
Is called when a new inbound message is delivered
|
static void |
main(String[] args)
Parse parameters or asking user for information.
|
void |
networkCellEvent(String gatewayName,
NetworkCellEvent networkCellEvent)
Is called when a gateway is registered into new network cell
|
void |
networkStatusEvent(String gatewayName,
NetworkStatusEvent networkStatusEvent)
Is called when a inbound call is detected.
|
void |
outboundMessageEvent(String gatewayName,
OutboundMessageEvent event)
Is called when a outbound message is delivered or expired time for
delivering, etc
|
public ServiceListenerExample(String port) throws IOException
IOException
public void inboundCallEvent(String gatewayName, CallEvent callEvent)
inboundCallEvent
in interface InboundCallListener
public void networkStatusEvent(String gatewayName, NetworkStatusEvent networkStatusEvent)
networkStatusEvent
in interface NetworkStatusListener
public void gatewayStatusEvent(String gatewayName, GatewayStatusEvent status)
gatewayStatusEvent
in interface GatewayStatusListener
public void networkCellEvent(String gatewayName, NetworkCellEvent networkCellEvent)
networkCellEvent
in interface NetworkCellListener
public void outboundMessageEvent(String gatewayName, OutboundMessageEvent event)
outboundMessageEvent
in interface OutboundMessageListener
public void inboundMessageEvent(String gatewayName, InboundMessageEvent inboundMessageEvent)
inboundMessageEvent
in interface InboundMessageListener
public static void main(String[] args) throws IOException, InterruptedException
args
- IOException
InterruptedException
Copyright © 2015–2016 jSMS4Pi. All rights reserved.