Interface StubPostProcessor<T>

Type Parameters:
T - type of stub mapping
All Known Subinterfaces:
WireMockStubPostProcessor

public interface StubPostProcessor<T>
Post processor of stub mappings.
Since:
3.0.0
Author:
Marcin Grzejszczak
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<StubPostProcessor>
    List of registered stub post processors.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isApplicable(org.springframework.cloud.contract.spec.Contract contract)
     
    default T
    postProcess(T stubMapping, org.springframework.cloud.contract.spec.Contract contract)
     
  • Field Details

  • Method Details

    • postProcess

      default T postProcess(T stubMapping, org.springframework.cloud.contract.spec.Contract contract)
      Parameters:
      stubMapping - - generated stub mapping
      contract - - contract for which the mapping was generated
      Returns:
      modified stub mapping
    • isApplicable

      boolean isApplicable(org.springframework.cloud.contract.spec.Contract contract)
      Parameters:
      contract - - contract for which the mapping was generated
      Returns:
      true if this post process should be applied