org.opennms.sms.monitor
Class MobileSequenceSession

java.lang.Object
  extended by org.opennms.sms.monitor.MobileSequenceSession

public class MobileSequenceSession
extends Object

MobileSequenceSession class.

Version:
$Id: $
Author:
ranger

Constructor Summary
MobileSequenceSession(Map<String,Object> parameters, List<SequenceSessionVariable> sessionVariables, MobileMsgTracker tracker)
          Constructor for MobileSequenceSession.
MobileSequenceSession(MobileMsgTracker tracker)
          Constructor for MobileSequenceSession.
 
Method Summary
 boolean eqOrMatches(String expected, String actual)
          eqOrMatches
 Map<String,SessionVariableGenerator> getGenerators()
          getGenerators
 Properties getProperties()
          getProperties
 int getRetries()
          getRetries
 long getTimeout()
          getTimeout
 boolean matches(String expected, String actual)
          matches
 void sendSms(String gatewayId, String recipient, String text, int validityPeriodInHours, MobileMsgResponseHandler responseHandler)
          sendSms
 void sendUssd(String gatewayId, String text, MobileMsgResponseHandler responseHandler)
          sendUssd
 void setRetries(int retries)
          setRetries
 void setTimeout(long timeout)
          setTimeout
 void setVariable(String varName, String value)
          setVariable
 String substitute(String string)
          substitute
 boolean ussdStatusMatches(String expected, org.smslib.USSDSessionStatus actual)
          ussdStatusMatches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileSequenceSession

public MobileSequenceSession(MobileMsgTracker tracker)

Constructor for MobileSequenceSession.

Parameters:
tracker - a MobileMsgTracker object.

MobileSequenceSession

public MobileSequenceSession(Map<String,Object> parameters,
                             List<SequenceSessionVariable> sessionVariables,
                             MobileMsgTracker tracker)

Constructor for MobileSequenceSession.

Parameters:
parameters - a Map object.
sessionVariables - a List object.
tracker - a MobileMsgTracker object.
Method Detail

getProperties

public Properties getProperties()

getProperties

Returns:
a Properties object.

getGenerators

public Map<String,SessionVariableGenerator> getGenerators()

getGenerators

Returns:
a Map object.

getRetries

public int getRetries()

getRetries

Returns:
a int.

getTimeout

public long getTimeout()

getTimeout

Returns:
a long.

setTimeout

public void setTimeout(long timeout)

setTimeout

Parameters:
timeout - a long.

setRetries

public void setRetries(int retries)

setRetries

Parameters:
retries - a int.

setVariable

public void setVariable(String varName,
                        String value)

setVariable

Parameters:
varName - a String object.
value - a String object.

substitute

public String substitute(String string)

substitute

Parameters:
string - a String object.
Returns:
a String object.

eqOrMatches

public boolean eqOrMatches(String expected,
                           String actual)

eqOrMatches

Parameters:
expected - a String object.
actual - a String object.
Returns:
a boolean.

matches

public boolean matches(String expected,
                       String actual)

matches

Parameters:
expected - a String object.
actual - a String object.
Returns:
a boolean.

ussdStatusMatches

public boolean ussdStatusMatches(String expected,
                                 org.smslib.USSDSessionStatus actual)

ussdStatusMatches

Parameters:
expected - a String object.
actual - a USSDSessionStatus object.
Returns:
a boolean.

sendSms

public void sendSms(String gatewayId,
                    String recipient,
                    String text,
                    int validityPeriodInHours,
                    MobileMsgResponseHandler responseHandler)

sendSms

Parameters:
gatewayId - a String object.
recipient - a String object.
text - a String object.
validityPeriodInHours - a int.
responseHandler - a MobileMsgResponseHandler object.

sendUssd

public void sendUssd(String gatewayId,
                     String text,
                     MobileMsgResponseHandler responseHandler)

sendUssd

Parameters:
gatewayId - a String object.
text - a String object.
responseHandler - a MobileMsgResponseHandler object.


Copyright © 2011. All Rights Reserved.