public class SmsMessenger extends Object implements org.opennms.protocols.rt.Messenger<MobileMsgRequest,MobileMsgResponse>, OnmsInboundMessageNotification, org.smslib.IUSSDNotification, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SmsMessenger() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
void |
process(org.smslib.AGateway gateway,
org.smslib.Message.MessageTypes msgType,
org.smslib.InboundMessage msg)
process
|
void |
process(String gatewayId,
org.smslib.USSDResponse ussdResponse) |
void |
sendRequest(MobileMsgRequest request)
sendRequest
|
void |
setSmsService(SmsService smsService)
setSmsService
|
void |
start(Queue<MobileMsgResponse> replyQueue) |
public void setSmsService(SmsService smsService)
setSmsService
smsService
- a SmsService
object.public void afterPropertiesSet() throws Exception
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- if any.public void sendRequest(MobileMsgRequest request) throws Exception
sendRequest
sendRequest
in interface org.opennms.protocols.rt.Messenger<MobileMsgRequest,MobileMsgResponse>
request
- a MobileMsgRequest
object.Exception
- if any.public void start(Queue<MobileMsgResponse> replyQueue)
start
in interface org.opennms.protocols.rt.Messenger<MobileMsgRequest,MobileMsgResponse>
public void process(org.smslib.AGateway gateway, org.smslib.Message.MessageTypes msgType, org.smslib.InboundMessage msg)
process
process
in interface OnmsInboundMessageNotification
gateway
- a AGateway
object.msgType
- a Message.MessageTypes
object.msg
- a InboundMessage
object.public void process(String gatewayId, org.smslib.USSDResponse ussdResponse)
process
in interface org.smslib.IUSSDNotification
Copyright © 2015. All Rights Reserved.