org.smslib.http
Class EzTextingHTTPGateway
java.lang.Object
org.smslib.AGateway
org.smslib.http.EzTextingHTTPGateway
public class EzTextingHTTPGateway
- extends AGateway
Constructor Summary |
EzTextingHTTPGateway(java.lang.String id,
java.lang.String myUsername,
java.lang.String myPassword)
|
Methods inherited from class org.smslib.AGateway |
deleteMessage, getAttributes, getDeliveryErrorCode, getFrom, getGatewayId, getInboundMessageCount, getMyself, getOutboundMessageCount, getProtocol, getRestartCount, getStatus, incInboundMessageCount, incOutboundMessageCount, isInbound, isOutbound, queryCoverage, queryMessage, queryMessage, readMessage, readMessages, 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 |
EzTextingHTTPGateway
public EzTextingHTTPGateway(java.lang.String id,
java.lang.String myUsername,
java.lang.String myPassword)
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
queryBalance
public float queryBalance()
throws TimeoutException,
GatewayException,
java.io.IOException,
java.lang.InterruptedException
- Description copied from class:
AGateway
- Queries the gateway for remaining credit.
- Overrides:
queryBalance
in class AGateway
- Returns:
- See details here: http://www.eztexting.com/developers/sms-api-documentation.html#CheckCredits
- Throws:
TimeoutException
- The gateway did not respond in a timely manner.
GatewayException
- A Gateway error occurred.
java.io.IOException
- An IO error occurred.
java.lang.InterruptedException
- The call was interrupted.
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
getQueueSchedulingInterval
public int getQueueSchedulingInterval()
- Description copied from class:
AGateway
- Returns the Gateway Queue sending internal (in milliseconds). Should be
defined in every actual Gateway implementation.
- Specified by:
getQueueSchedulingInterval
in class AGateway
- Returns:
- The scheduling interval (in milliseconds).
(c) 2002-2011, http://smslib.org