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
Modifier and TypeMethodDescriptionbyte[]
Constructs the body returning the contents as a byte arrayau.com.dius.pact.core.model.ContentType
Returns the content type for the bodyau.com.dius.pact.core.model.generators.Generators
Returns the generators for the bodyau.com.dius.pact.core.model.matchingrules.MatchingRuleCategory
Returns the matchers for the body
-
Method Details
-
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
-