org.smslib.smpp.jsmpp
Class JSMPPGateway
java.lang.Object
org.smslib.AGateway
org.smslib.smpp.AbstractSMPPGateway
org.smslib.smpp.jsmpp.JSMPPGateway
public class JSMPPGateway
- extends AbstractSMPPGateway
A gateway that supports SMPP through JSMPP (http://code.google.com/p/jsmpp/).
- Author:
- Bassam Al-Sarori
Methods inherited from class org.smslib.AGateway |
deleteMessage, getAttributes, getDeliveryErrorCode, getFrom, getGatewayId, getInboundMessageCount, getMyself, getOutboundMessageCount, getProtocol, getRestartCount, getStatus, incInboundMessageCount, incOutboundMessageCount, isInbound, isOutbound, queryBalance, queryCoverage, queryMessage, queryMessage, readMessage, readPhonebook, sendMessages, sendUSSDCommand, sendUSSDCommand, sendUSSDRequest, setAttributes, setDeliveryErrorCode, setFrom, setInbound, setOutbound, setProtocol, setStatus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSMPPGateway
public JSMPPGateway(java.lang.String id,
java.lang.String host,
int port,
BindAttributes bindAttributes)
- Parameters:
id
- host
- port
- bindAttributes
-
startGateway
public void startGateway()
throws TimeoutException,
GatewayException,
java.io.IOException,
java.lang.InterruptedException
- Overrides:
startGateway
in class AGateway
- Throws:
TimeoutException
GatewayException
java.io.IOException
java.lang.InterruptedException
stopGateway
public void stopGateway()
throws TimeoutException,
GatewayException,
java.io.IOException,
java.lang.InterruptedException
- Overrides:
stopGateway
in class AGateway
- Throws:
TimeoutException
GatewayException
java.io.IOException
java.lang.InterruptedException
sendMessage
public boolean sendMessage(OutboundMessage msg)
throws TimeoutException,
GatewayException,
java.io.IOException,
java.lang.InterruptedException
- Overrides:
sendMessage
in class AGateway
- Throws:
TimeoutException
GatewayException
java.io.IOException
java.lang.InterruptedException
setEnquireLink
public void setEnquireLink(int enquireLink)
- Overrides:
setEnquireLink
in class AbstractSMPPGateway
(c) 2002-2011, http://smslib.org