Interface BodyBuilder


public interface BodyBuilder
Interface to a builder that constructs a body, including matchers and generators
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Constructs the body returning the contents as a byte array
    au.com.dius.pact.core.model.ContentType
    Returns the content type for the body
    au.com.dius.pact.core.model.generators.Generators
    Returns the generators for the body
    au.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