Package jade.imtp.leap.sms
Class SMSManager
- java.lang.Object
-
- jade.imtp.leap.sms.SMSManager
-
- Direct Known Subclasses:
PhoneBasedSMSManager
public abstract class SMSManager extends Object
- Author:
- Giovanni Caire - TILAB
-
-
Field Summary
Fields Modifier and Type Field Description static byteBINARYstatic StringIMPLEMENTATIONprotected PropertiesmyPropertiesstatic byteTEXTstatic intUNDEFINED
-
Constructor Summary
Constructors Constructor Description SMSManager()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SMSManagergetInstance(Properties pp)protected voidinit(Properties pp)protected abstract voidsend(String msisdn, int port, byte type, byte[] data)Send an SMS of a given type (BINARY or TEXT) to a given msisdn on a given port.voidsendBinaryMessage(String msisdn, int port, byte[] data)voidsendTextMessage(String msisdn, int port, String text)
-
-
-
Field Detail
-
BINARY
public static final byte BINARY
- See Also:
- Constant Field Values
-
TEXT
public static final byte TEXT
- See Also:
- Constant Field Values
-
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
-
IMPLEMENTATION
public static final String IMPLEMENTATION
- See Also:
- Constant Field Values
-
myProperties
protected Properties myProperties
-
-
Method Detail
-
getInstance
public static SMSManager getInstance(Properties pp)
-
init
protected void init(Properties pp) throws ICPException
- Throws:
ICPException
-
sendBinaryMessage
public void sendBinaryMessage(String msisdn, int port, byte[] data)
-
send
protected abstract void send(String msisdn, int port, byte type, byte[] data)
Send an SMS of a given type (BINARY or TEXT) to a given msisdn on a given port. Note that SMS are not reliable --> Being sure that the SMS has been sent does not guarantee that the destination msisdn receives it --> This is why this method does not throw any exception
-
-