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
FieldsModifier and TypeFieldDescriptionstatic final List<StubPostProcessor>
List of registered stub post processors. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isApplicable
(org.springframework.cloud.contract.spec.Contract contract) default T
postProcess
(T stubMapping, org.springframework.cloud.contract.spec.Contract contract)
-
Field Details
-
PROCESSORS
List of registered stub post processors.
-
-
Method Details
-
postProcess
- 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
-