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 List<StubPostProcessor>
PROCESSORS
List of registered stub post processors.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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 Detail
-
PROCESSORS
static final List<StubPostProcessor> PROCESSORS
List of registered stub post processors.
-
-
Method Detail
-
postProcess
default T postProcess(T stubMapping, org.springframework.cloud.contract.spec.Contract contract)
- Parameters:
stubMapping
- - generated stub mappingcontract
- - 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
-
-