SMSLib 3.5.3

org.smslib.smpp.jsmpp
Class JSMPPGateway

java.lang.Object
  extended by org.smslib.AGateway
      extended by org.smslib.smpp.AbstractSMPPGateway
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.smslib.AGateway
AGateway.AsyncEvents, AGateway.GatewayAttributes, AGateway.GatewayStatuses, AGateway.Protocols
 
Constructor Summary
JSMPPGateway(java.lang.String id, java.lang.String host, int port, BindAttributes bindAttributes)
           
 
Method Summary
 boolean sendMessage(OutboundMessage msg)
           
 void setEnquireLink(int enquireLink)
           
 void startGateway()
           
 void stopGateway()
           
 
Methods inherited from class org.smslib.smpp.AbstractSMPPGateway
getBindAttributes, getDestinationAddress, getEnquireLink, getHost, getPort, getQueueSchedulingInterval, getSourceAddress, readMessages, setDestinationAddress, setSourceAddress
 
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
 

Constructor Detail

JSMPPGateway

public JSMPPGateway(java.lang.String id,
                    java.lang.String host,
                    int port,
                    BindAttributes bindAttributes)
Parameters:
id -
host -
port -
bindAttributes -
Method Detail

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

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org