org.opennms.sms.monitor.internal.config
Class MobileSequenceResponse

java.lang.Object
  extended by org.opennms.sms.monitor.internal.config.MobileSequenceOperation
      extended by org.opennms.sms.monitor.internal.config.MobileSequenceResponse
Direct Known Subclasses:
SmsSequenceResponse, UssdSequenceResponse

public abstract class MobileSequenceResponse
extends MobileSequenceOperation

Abstract MobileSequenceResponse class.

Version:
$Id: $
Author:
ranger

Constructor Summary
MobileSequenceResponse()
          Constructor for MobileSequenceResponse.
MobileSequenceResponse(String label)
          Constructor for MobileSequenceResponse.
MobileSequenceResponse(String gatewayId, String label)
          Constructor for MobileSequenceResponse.
 
Method Summary
 void addMatcher(SequenceResponseMatcher matcher)
          addMatcher
 String getEffectiveLabel(MobileSequenceSession session)
          getEffectiveLabel
 List<SequenceResponseMatcher> getMatchers()
          getMatchers
 MobileSequenceTransaction getTransaction()
          getTransaction
 boolean matches(MobileSequenceSession session, MobileMsgRequest request, MobileMsgResponse response)
          matches
protected abstract  boolean matchesResponseType(MobileMsgRequest request, MobileMsgResponse response)
          matchesResponseType
abstract  void processResponse(MobileSequenceSession session, MobileMsgRequest request, MobileMsgResponse response)
          processResponse
 void setMatchers(List<SequenceResponseMatcher> matchers)
          setMatchers
 void setTransaction(MobileSequenceTransaction transaction)
          setTransaction
 String toString()
          toString
 
Methods inherited from class org.opennms.sms.monitor.internal.config.MobileSequenceOperation
getGatewayId, getLabel, log, setGatewayId, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MobileSequenceResponse

public MobileSequenceResponse()

Constructor for MobileSequenceResponse.


MobileSequenceResponse

public MobileSequenceResponse(String label)

Constructor for MobileSequenceResponse.

Parameters:
label - a String object.

MobileSequenceResponse

public MobileSequenceResponse(String gatewayId,
                              String label)

Constructor for MobileSequenceResponse.

Parameters:
gatewayId - a String object.
label - a String object.
Method Detail

getMatchers

public List<SequenceResponseMatcher> getMatchers()

getMatchers

Returns:
a List object.

setMatchers

public void setMatchers(List<SequenceResponseMatcher> matchers)

setMatchers

Parameters:
matchers - a List object.

addMatcher

public void addMatcher(SequenceResponseMatcher matcher)

addMatcher

Parameters:
matcher - a SequenceResponseMatcher object.

getEffectiveLabel

public String getEffectiveLabel(MobileSequenceSession session)

getEffectiveLabel

Parameters:
session - a MobileSequenceSession object.
Returns:
a String object.

getTransaction

public MobileSequenceTransaction getTransaction()

getTransaction

Returns:
a MobileSequenceTransaction object.

setTransaction

public void setTransaction(MobileSequenceTransaction transaction)

setTransaction

Parameters:
transaction - a MobileSequenceTransaction object.

toString

public String toString()

toString

Overrides:
toString in class MobileSequenceOperation
Returns:
a String object.

matchesResponseType

protected abstract boolean matchesResponseType(MobileMsgRequest request,
                                               MobileMsgResponse response)

matchesResponseType

Parameters:
request - a MobileMsgRequest object.
response - a MobileMsgResponse object.
Returns:
a boolean.

matches

public boolean matches(MobileSequenceSession session,
                       MobileMsgRequest request,
                       MobileMsgResponse response)

matches

Parameters:
session - a MobileSequenceSession object.
request - a MobileMsgRequest object.
response - a MobileMsgResponse object.
Returns:
a boolean.

processResponse

public abstract void processResponse(MobileSequenceSession session,
                                     MobileMsgRequest request,
                                     MobileMsgResponse response)

processResponse

Parameters:
session - a MobileSequenceSession object.
request - a MobileMsgRequest object.
response - a MobileMsgResponse object.


Copyright © 2011. All Rights Reserved.