zyneo.sms.gateway.adaptor.xml.tcp.client
Interface iReceiveClient


public interface iReceiveClient

Defines the Contract between the ReceiveServer and client.

Author:
Niklas Andersson

Method Summary
 void exit()
          This method is called when the ReceiveServer terminates.
 void receive(Notification n)
          This method is called by the ReceiveServer whenever a Notification arrives.
 void receive(Sms s)
          This method is called by the ReceiveServer whenever a Sms arrives.
 

Method Detail

receive

public void receive(Sms s)
             throws java.lang.Exception
This method is called by the ReceiveServer whenever a Sms arrives. If the implementation of this method throws an exception, the Receive- Server will "nak" the Sms. the Sms will be considered by the SmsGateway as not delivered and saved for future delivery attempts.

Parameters:
s - The sms
Throws:
Exception, - Specified by implementor.
java.lang.Exception

receive

public void receive(Notification n)
             throws java.lang.Exception
This method is called by the ReceiveServer whenever a Notification arrives. If the implementation of this method throws an exception, the Receive- Server will "nak" the Notification. The Notification will be considered by the SmsGateway as not delivered and saved for future delivery attempts.

Parameters:
n - The notification
Throws:
Exception, - Specified by implementor.
java.lang.Exception

exit

public void exit()
This method is called when the ReceiveServer terminates.



Copyright © 2002 Zyneo. All Rights Reserved.