public interface SmsService
SmsService interface.
Modifier and Type | Method and Description |
---|---|
void |
addGateway(org.smslib.AGateway gateway)
addGateway
|
boolean |
addToGroup(String groupName,
String number)
addToGroup
|
boolean |
createGroup(String groupName)
createGroup
|
boolean |
deleteMessage(org.smslib.InboundMessage msg)
deleteMessage
|
ArrayList<String> |
expandGroup(String groupName)
expandGroup
|
org.smslib.AGateway |
findGateway(String gatewayId)
findGateway
|
org.smslib.ICallNotification |
getCallNotification()
getCallNotification
|
Collection<org.smslib.AGateway> |
getGateways()
getGateways
|
org.smslib.AGateway[] |
getGatewaysNET()
getGatewaysNET
|
org.smslib.IGatewayStatusNotification |
getGatewayStatusNotification()
getGatewayStatusNotification
|
int |
getInboundMessageCount()
getInboundMessageCount
|
int |
getInboundMessageCount(org.smslib.AGateway gateway)
getInboundMessageCount
|
int |
getInboundMessageCount(String gatewayId)
getInboundMessageCount
|
OnmsInboundMessageNotification |
getInboundNotification()
getInboundNotification
|
org.smslib.crypto.KeyManager |
getKeyManager()
getKeyManager
|
org.smslib.balancing.LoadBalancer |
getLoadBalancer()
getLoadBalancer
|
int |
getOutboundMessageCount()
getOutboundMessageCount
|
int |
getOutboundMessageCount(org.smslib.AGateway gateway)
getOutboundMessageCount
|
int |
getOutboundMessageCount(String gatewayId)
getOutboundMessageCount
|
org.smslib.IOutboundMessageNotification |
getOutboundNotification()
getOutboundNotification
|
org.smslib.queues.QueueManager |
getQueueManager()
getQueueManager
|
org.smslib.IQueueSendingNotification |
getQueueSendingNotification()
getQueueSendingNotification
|
org.smslib.routing.Router |
getRouter()
getRouter
|
org.smslib.Service.ServiceStatus |
getServiceStatus()
getServiceStatus
|
org.smslib.Settings |
getSettings()
getSettings
|
long |
getStartMillis()
getStartMillis
|
org.smslib.IUSSDNotification |
getUSSDNotification()
getUSSDNotification
|
boolean |
queueMessage(org.smslib.OutboundMessage msg)
queueMessage
|
boolean |
queueMessage(org.smslib.OutboundMessage msg,
String gatewayId)
queueMessage
|
int |
queueMessages(Collection<org.smslib.OutboundMessage> msgList)
queueMessages
|
int |
queueMessages(Collection<org.smslib.OutboundMessage> msgList,
String gatewayId)
queueMessages
|
int |
queueMessages(org.smslib.OutboundMessage[] msgArray)
queueMessages
|
int |
queueMessages(org.smslib.OutboundMessage[] msgArray,
String gatewayId)
queueMessages
|
org.smslib.InboundMessage |
readMessage(String gatewayId,
String memLoc,
int memIndex)
readMessage
|
int |
readMessages(Collection<org.smslib.InboundMessage> msgList,
org.smslib.InboundMessage.MessageClasses msgClass)
readMessages
|
int |
readMessages(Collection<org.smslib.InboundMessage> msgList,
org.smslib.InboundMessage.MessageClasses msgClass,
org.smslib.AGateway gateway)
readMessages
|
int |
readMessages(Collection<org.smslib.InboundMessage> msgList,
org.smslib.InboundMessage.MessageClasses msgClass,
String gatewayId)
readMessages
|
org.smslib.InboundMessage[] |
readMessages(org.smslib.InboundMessage.MessageClasses msgClass)
readMessages
|
org.smslib.InboundMessage[] |
readMessages(org.smslib.InboundMessage.MessageClasses msgClass,
org.smslib.AGateway gateway)
readMessages
|
org.smslib.InboundMessage[] |
readMessages(org.smslib.InboundMessage.MessageClasses msgClass,
String gatewayId)
readMessages
|
int |
readPhonebook(org.smslib.Phonebook phonebook,
String gatewayId)
readPhonebook
|
boolean |
removeFromGroup(String groupName,
String number)
removeFromGroup
|
boolean |
removeGateway(org.smslib.AGateway gateway)
removeGateway
|
boolean |
removeGroup(String groupName)
removeGroup
|
boolean |
removeMessage(org.smslib.OutboundMessage msg)
removeMessage
|
boolean |
sendMessage(org.smslib.OutboundMessage msg)
sendMessage
|
boolean |
sendMessage(org.smslib.OutboundMessage msg,
String gatewayId)
sendMessage
|
int |
sendMessages(Collection<org.smslib.OutboundMessage> msgList)
sendMessages
|
int |
sendMessages(Collection<org.smslib.OutboundMessage> msgList,
String gatewayId)
sendMessages
|
int |
sendMessages(org.smslib.OutboundMessage[] msgArray)
sendMessages
|
int |
sendMessages(org.smslib.OutboundMessage[] msgArray,
String gatewayId)
sendMessages
|
boolean |
sendUSSDRequest(org.smslib.USSDRequest req,
String gatewayId)
sendUSSDRequest
|
void |
setCallNotification(org.smslib.ICallNotification callNotification)
setCallNotification
|
void |
setGatewayStatusNotification(org.smslib.IGatewayStatusNotification gatewayStatusNotification)
setGatewayStatusNotification
|
void |
setInboundNotification(OnmsInboundMessageNotification inboundNotification)
setInboundNotification
|
void |
setLoadBalancer(org.smslib.balancing.LoadBalancer loadBalancer)
setLoadBalancer
|
void |
setOutboundNotification(org.smslib.IOutboundMessageNotification outboundNotification)
setOutboundNotification
|
void |
setQueueSendingNotification(org.smslib.IQueueSendingNotification queueSendingNotification)
setQueueSendingNotification
|
void |
setRouter(org.smslib.routing.Router router)
setRouter
|
void |
setUSSDNotification(org.smslib.IUSSDNotification notif)
setUSSDNotification
|
void |
startService()
startService
|
void |
stopService()
stopService
|
void addGateway(org.smslib.AGateway gateway) throws org.smslib.GatewayException
addGateway
gateway
- a AGateway
object.org.smslib.GatewayException
- if any.boolean removeGateway(org.smslib.AGateway gateway) throws org.smslib.GatewayException
removeGateway
gateway
- a AGateway
object.org.smslib.GatewayException
- if any.void startService() throws org.smslib.SMSLibException, org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
startService
org.smslib.SMSLibException
- if any.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.void stopService() throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
stopService
org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int readMessages(Collection<org.smslib.InboundMessage> msgList, org.smslib.InboundMessage.MessageClasses msgClass) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessages
msgList
- a Collection
object.msgClass
- a InboundMessage.MessageClasses
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.org.smslib.InboundMessage[] readMessages(org.smslib.InboundMessage.MessageClasses msgClass) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessages
msgClass
- a InboundMessage.MessageClasses
object.InboundMessage
objects.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int readMessages(Collection<org.smslib.InboundMessage> msgList, org.smslib.InboundMessage.MessageClasses msgClass, String gatewayId) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessages
msgList
- a Collection
object.msgClass
- a InboundMessage.MessageClasses
object.gatewayId
- a String
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.org.smslib.InboundMessage[] readMessages(org.smslib.InboundMessage.MessageClasses msgClass, String gatewayId) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessages
msgClass
- a InboundMessage.MessageClasses
object.gatewayId
- a String
object.InboundMessage
objects.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int readMessages(Collection<org.smslib.InboundMessage> msgList, org.smslib.InboundMessage.MessageClasses msgClass, org.smslib.AGateway gateway) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessages
msgList
- a Collection
object.msgClass
- a InboundMessage.MessageClasses
object.gateway
- a AGateway
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.org.smslib.InboundMessage[] readMessages(org.smslib.InboundMessage.MessageClasses msgClass, org.smslib.AGateway gateway) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessages
msgClass
- a InboundMessage.MessageClasses
object.gateway
- a AGateway
object.InboundMessage
objects.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.org.smslib.InboundMessage readMessage(String gatewayId, String memLoc, int memIndex) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readMessage
gatewayId
- a String
object.memLoc
- a String
object.memIndex
- a int.InboundMessage
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.boolean sendMessage(org.smslib.OutboundMessage msg) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
sendMessage
msg
- a OutboundMessage
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.boolean sendMessage(org.smslib.OutboundMessage msg, String gatewayId) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
sendMessage
msg
- a OutboundMessage
object.gatewayId
- a String
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int sendMessages(Collection<org.smslib.OutboundMessage> msgList) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
sendMessages
msgList
- a Collection
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int sendMessages(org.smslib.OutboundMessage[] msgArray) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
sendMessages
msgArray
- an array of OutboundMessage
objects.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int sendMessages(Collection<org.smslib.OutboundMessage> msgList, String gatewayId) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
sendMessages
msgList
- a Collection
object.gatewayId
- a String
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int sendMessages(org.smslib.OutboundMessage[] msgArray, String gatewayId) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
sendMessages
msgArray
- an array of OutboundMessage
objects.gatewayId
- a String
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.boolean queueMessage(org.smslib.OutboundMessage msg)
queueMessage
msg
- a OutboundMessage
object.boolean queueMessage(org.smslib.OutboundMessage msg, String gatewayId)
queueMessage
msg
- a OutboundMessage
object.gatewayId
- a String
object.int queueMessages(Collection<org.smslib.OutboundMessage> msgList)
queueMessages
msgList
- a Collection
object.int queueMessages(org.smslib.OutboundMessage[] msgArray)
queueMessages
msgArray
- an array of OutboundMessage
objects.int queueMessages(Collection<org.smslib.OutboundMessage> msgList, String gatewayId)
queueMessages
msgList
- a Collection
object.gatewayId
- a String
object.int queueMessages(org.smslib.OutboundMessage[] msgArray, String gatewayId)
queueMessages
msgArray
- an array of OutboundMessage
objects.gatewayId
- a String
object.boolean removeMessage(org.smslib.OutboundMessage msg)
removeMessage
msg
- a OutboundMessage
object.boolean deleteMessage(org.smslib.InboundMessage msg) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
deleteMessage
msg
- a InboundMessage
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int readPhonebook(org.smslib.Phonebook phonebook, String gatewayId) throws org.smslib.TimeoutException, org.smslib.GatewayException, IOException, InterruptedException
readPhonebook
phonebook
- a Phonebook
object.gatewayId
- a String
object.org.smslib.TimeoutException
- if any.org.smslib.GatewayException
- if any.IOException
- if any.InterruptedException
- if any.int getInboundMessageCount(String gatewayId)
getInboundMessageCount
gatewayId
- a String
object.int getInboundMessageCount(org.smslib.AGateway gateway)
getInboundMessageCount
gateway
- a AGateway
object.int getOutboundMessageCount(String gatewayId)
getOutboundMessageCount
gatewayId
- a String
object.int getOutboundMessageCount(org.smslib.AGateway gateway)
getOutboundMessageCount
gateway
- a AGateway
object.int getInboundMessageCount()
getInboundMessageCount
int getOutboundMessageCount()
getOutboundMessageCount
org.smslib.AGateway findGateway(String gatewayId)
findGateway
gatewayId
- a String
object.AGateway
object.Collection<org.smslib.AGateway> getGateways()
getGateways
Collection
object.org.smslib.AGateway[] getGatewaysNET()
getGatewaysNET
AGateway
objects.org.smslib.balancing.LoadBalancer getLoadBalancer()
getLoadBalancer
LoadBalancer
object.void setLoadBalancer(org.smslib.balancing.LoadBalancer loadBalancer)
setLoadBalancer
loadBalancer
- a LoadBalancer
object.org.smslib.routing.Router getRouter()
getRouter
Router
object.void setRouter(org.smslib.routing.Router router)
setRouter
router
- a Router
object.OnmsInboundMessageNotification getInboundNotification()
getInboundNotification
OnmsInboundMessageNotification
object.void setInboundNotification(OnmsInboundMessageNotification inboundNotification)
setInboundNotification
inboundNotification
- a OnmsInboundMessageNotification
object.org.smslib.IOutboundMessageNotification getOutboundNotification()
getOutboundNotification
IOutboundMessageNotification
object.void setOutboundNotification(org.smslib.IOutboundMessageNotification outboundNotification)
setOutboundNotification
outboundNotification
- a IOutboundMessageNotification
object.org.smslib.ICallNotification getCallNotification()
getCallNotification
ICallNotification
object.void setCallNotification(org.smslib.ICallNotification callNotification)
setCallNotification
callNotification
- a ICallNotification
object.org.smslib.IGatewayStatusNotification getGatewayStatusNotification()
getGatewayStatusNotification
IGatewayStatusNotification
object.void setGatewayStatusNotification(org.smslib.IGatewayStatusNotification gatewayStatusNotification)
setGatewayStatusNotification
gatewayStatusNotification
- a IGatewayStatusNotification
object.org.smslib.IQueueSendingNotification getQueueSendingNotification()
getQueueSendingNotification
IQueueSendingNotification
object.void setQueueSendingNotification(org.smslib.IQueueSendingNotification queueSendingNotification)
setQueueSendingNotification
queueSendingNotification
- a IQueueSendingNotification
object.long getStartMillis()
getStartMillis
org.smslib.Service.ServiceStatus getServiceStatus()
getServiceStatus
Service.ServiceStatus
object.org.smslib.Settings getSettings()
getSettings
Settings
object.boolean createGroup(String groupName)
createGroup
groupName
- a String
object.boolean removeGroup(String groupName)
removeGroup
groupName
- a String
object.org.smslib.queues.QueueManager getQueueManager()
getQueueManager
QueueManager
object.org.smslib.crypto.KeyManager getKeyManager()
getKeyManager
KeyManager
object.boolean sendUSSDRequest(org.smslib.USSDRequest req, String gatewayId) throws org.smslib.GatewayException, org.smslib.TimeoutException, IOException, InterruptedException
sendUSSDRequest
req
- a USSDRequest
object.gatewayId
- a String
object.org.smslib.GatewayException
- if any.org.smslib.TimeoutException
- if any.IOException
- if any.InterruptedException
- if any.void setUSSDNotification(org.smslib.IUSSDNotification notif)
setUSSDNotification
notif
- a IUSSDNotification
object.org.smslib.IUSSDNotification getUSSDNotification()
getUSSDNotification
IUSSDNotification
object.Copyright © 2015. All Rights Reserved.