Package au.com.dius.pact.consumer.dsl
Interface BodyBuilder
-
public interface BodyBuilder
Interface to a builder that constructs a body, including matchers and generators
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
buildBody()
Constructs the body returning the contents as a byte arrayau.com.dius.pact.core.model.ContentType
getContentType()
Returns the content type for the bodyau.com.dius.pact.core.model.generators.Generators
getGenerators()
Returns the generators for the bodyau.com.dius.pact.core.model.matchingrules.MatchingRuleCategory
getMatchers()
Returns the matchers for the body
-
-
-
Method Detail
-
getMatchers
au.com.dius.pact.core.model.matchingrules.MatchingRuleCategory getMatchers()
Returns the matchers for the body
-
getGenerators
au.com.dius.pact.core.model.generators.Generators getGenerators()
Returns the generators for the body
-
getContentType
au.com.dius.pact.core.model.ContentType getContentType()
Returns the content type for the body
-
buildBody
byte[] buildBody()
Constructs the body returning the contents as a byte array
-
-