Class AbstractMessagingHandler
- java.lang.Object
-
- org.uitnet.testing.smartfwk.messaging.AbstractMessagingHandler
-
- All Implemented Interfaces:
MessageReceiver,MessageSender,MessagingConnectionProvider
public abstract class AbstractMessagingHandler extends Object implements MessageSender, MessageReceiver, MessagingConnectionProvider
- Author:
- Madhav Krishna
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<com.jayway.jsonpath.DocumentContext>>bucketMessagesMapprotected MessageHandlerTargetConfigmessageHandlerTargetConfig
-
Constructor Summary
Constructors Constructor Description AbstractMessagingHandler(MessageHandlerTargetConfig messageHandlerTargetConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()List<com.jayway.jsonpath.DocumentContext>getRecordedMessages(String bucketName)voidnotifyMessageReceived(MessageInfo message)voidstart()voidstartMessageRecorder(String bucketName)voidstopMessageRecorder(String bucketName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.uitnet.testing.smartfwk.messaging.MessageSender
sendMessage
-
Methods inherited from interface org.uitnet.testing.smartfwk.messaging.MessagingConnectionProvider
connectToSender, disconnect, startReceiver
-
-
-
-
Field Detail
-
bucketMessagesMap
protected Map<String,List<com.jayway.jsonpath.DocumentContext>> bucketMessagesMap
-
messageHandlerTargetConfig
protected MessageHandlerTargetConfig messageHandlerTargetConfig
-
-
Constructor Detail
-
AbstractMessagingHandler
public AbstractMessagingHandler(MessageHandlerTargetConfig messageHandlerTargetConfig)
-
-
Method Detail
-
start
public void start()
-
startMessageRecorder
public void startMessageRecorder(String bucketName)
-
stopMessageRecorder
public void stopMessageRecorder(String bucketName)
-
getRecordedMessages
public List<com.jayway.jsonpath.DocumentContext> getRecordedMessages(String bucketName)
-
notifyMessageReceived
public void notifyMessageReceived(MessageInfo message)
- Specified by:
notifyMessageReceivedin interfaceMessageReceiver
-
close
public void close()
-
-