Class AbstractStubMappings
java.lang.Object
com.github.tomakehurst.wiremock.stubbing.AbstractStubMappings
- All Implemented Interfaces:
StubMappings
- Direct Known Subclasses:
StoreBackedStubMappings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String,
RequestMatcherExtension> protected final FileSource
protected final Scenarios
protected final StubMappingStore
protected final List<StubLifecycleListener>
protected final Map<String,
ResponseDefinitionTransformer> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractStubMappings
(StubMappingStore store, Scenarios scenarios, Map<String, RequestMatcherExtension> customMatchers, Map<String, ResponseDefinitionTransformer> transformers, BlobStore filesBlobStore, List<StubLifecycleListener> stubLifecycleListeners) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(StubMapping mapping) void
editMapping
(StubMapping stubMapping) findByMetadata
(StringValuePattern pattern) getAll()
void
removeMapping
(StubMapping mapping) void
reset()
void
-
Field Details
-
scenarios
-
customMatchers
-
transformers
-
filesFileSource
-
stubLifecycleListeners
-
store
-
-
Constructor Details
-
AbstractStubMappings
public AbstractStubMappings(StubMappingStore store, Scenarios scenarios, Map<String, RequestMatcherExtension> customMatchers, Map<String, ResponseDefinitionTransformer> transformers, BlobStore filesBlobStore, List<StubLifecycleListener> stubLifecycleListeners)
-
-
Method Details
-
serveFor
- Specified by:
serveFor
in interfaceStubMappings
-
addMapping
- Specified by:
addMapping
in interfaceStubMappings
-
removeMapping
- Specified by:
removeMapping
in interfaceStubMappings
-
editMapping
- Specified by:
editMapping
in interfaceStubMappings
-
reset
public void reset()- Specified by:
reset
in interfaceStubMappings
-
resetScenarios
public void resetScenarios()- Specified by:
resetScenarios
in interfaceStubMappings
-
getAll
- Specified by:
getAll
in interfaceStubMappings
-
get
- Specified by:
get
in interfaceStubMappings
-
getAllScenarios
- Specified by:
getAllScenarios
in interfaceStubMappings
-
findByMetadata
- Specified by:
findByMetadata
in interfaceStubMappings
-