Class SnapshotStubMappingGenerator
java.lang.Object
com.github.tomakehurst.wiremock.recording.SnapshotStubMappingGenerator
- All Implemented Interfaces:
com.google.common.base.Function<ServeEvent,
,StubMapping> Function<ServeEvent,
StubMapping>
public class SnapshotStubMappingGenerator
extends Object
implements com.google.common.base.Function<ServeEvent,StubMapping>
Transforms ServeEvents to StubMappings using RequestPatternTransformer and
LoggedResponseDefinitionTransformer
-
Constructor Summary
ConstructorDescriptionSnapshotStubMappingGenerator
(RequestPatternTransformer requestTransformer, LoggedResponseDefinitionTransformer responseTransformer) SnapshotStubMappingGenerator
(Map<String, CaptureHeadersSpec> captureHeaders, RequestBodyPatternFactory requestBodyPatternFactory) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
SnapshotStubMappingGenerator
public SnapshotStubMappingGenerator(RequestPatternTransformer requestTransformer, LoggedResponseDefinitionTransformer responseTransformer) -
SnapshotStubMappingGenerator
public SnapshotStubMappingGenerator(Map<String, CaptureHeadersSpec> captureHeaders, RequestBodyPatternFactory requestBodyPatternFactory)
-
-
Method Details
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Function<ServeEvent,
StubMapping> - Specified by:
apply
in interfaceFunction<ServeEvent,
StubMapping>
-