@groovy.transform.Canonical @groovy.util.logging.Slf4j class Message extends java.lang.Object
Message in a Message Pact
| Type | Name and description |
|---|---|
au.com.dius.pact.core.model.OptionalBody |
contents |
java.lang.String |
description |
au.com.dius.pact.core.model.generators.Generators |
generators |
au.com.dius.pact.core.model.matchingrules.MatchingRules |
matchingRules |
java.util.Map<java.lang.String, java.lang.String> |
metaData |
java.util.List<au.com.dius.pact.core.model.ProviderState> |
providerStates |
| Type Params | Return Type | Name and description |
|---|---|---|
|
au.com.dius.pact.core.model.HttpPart |
asPactRequest() |
|
boolean |
conflictsWith(au.com.dius.pact.core.model.Interaction other)@deprecated This will be removed in 4.0 |
|
byte[] |
contentsAsBytes() |
|
java.lang.Object |
formatContents() |
|
static Message |
fromMap(java.util.Map map)Builds a message from a Map |
|
java.lang.String |
getContentType() |
|
org.apache.http.entity.ContentType |
getParsedContentType() |
|
java.lang.String |
getProviderState() |
|
java.util.Map |
toMap(au.com.dius.pact.core.model.PactSpecVersion pactSpecVersion = PactSpecVersion.V3) |
|
java.lang.String |
uniqueKey() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Builds a message from a Map