Interface MessageInteraction
-
- All Implemented Interfaces:
-
au.com.dius.pact.core.model.Interaction
public interface MessageInteraction implements Interaction
Interface to an asynchronous message
-
-
Method Summary
Modifier and Type Method Description abstract ByteArray
contentsAsBytes()
Returns the bytes of the message content abstract String
contentsAsString()
Returns the message content as a String. abstract String
getDescription()
Message description abstract Unit
setDescription(String description)
Message description abstract String
getInteractionId()
Message interaction ID. abstract OptionalBody
getMessageContents()
Message contents abstract MatchingRules
getMatchingRules()
Matching rules for the message abstract Generators
getGenerators()
Generators for the message abstract Map<String, Object>
getMetadata()
Message Metadata abstract ContentType
getContentType()
The content type of the message abstract Map<String, Map<String, JsonValue>>
getPluginConfiguration()
Any configuration provided by plugins -
Methods inherited from class au.com.dius.pact.core.model.Interaction
asAsynchronousMessage, asMessage, asSynchronousMessages, asSynchronousRequestResponse, asV4Interaction, conflictsWith, getComments, getProviderStates, isAsynchronousMessage, isSynchronousMessages, isSynchronousRequestResponse, isV4, toMap, uniqueKey, validateForVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
contentsAsBytes
abstract ByteArray contentsAsBytes()
Returns the bytes of the message content
-
contentsAsString
abstract String contentsAsString()
Returns the message content as a String. This will convert the contents if necessary.
-
getDescription
abstract String getDescription()
Message description
-
setDescription
abstract Unit setDescription(String description)
Message description
-
getInteractionId
abstract String getInteractionId()
Message interaction ID. This will only be set if fetched from a Pact Broker
-
getMessageContents
abstract OptionalBody getMessageContents()
Message contents
-
getMatchingRules
abstract MatchingRules getMatchingRules()
Matching rules for the message
-
getGenerators
abstract Generators getGenerators()
Generators for the message
-
getMetadata
abstract Map<String, Object> getMetadata()
Message Metadata
-
getContentType
abstract ContentType getContentType()
The content type of the message
-
getPluginConfiguration
abstract Map<String, Map<String, JsonValue>> getPluginConfiguration()
Any configuration provided by plugins
-
-
-
-