
package com.github.tomakehurst.wiremock.stubbing;


import com.github.tomakehurst.wiremock.http.Request;
import com.github.tomakehurst.wiremock.matching.StringValuePattern;
import com.google.common.base.Optional;

import java.util.List;
import java.util.Map;
import java.util.UUID;

public interface StubMappings {

	ServeEvent serveFor(Request request);
	void addMapping(StubMapping mapping);
	void removeMapping(StubMapping mapping);
	void editMapping(StubMapping stubMapping);
	void reset();
	void resetScenarios();

    List<StubMapping> getAll();
	Optional<StubMapping> get(UUID id);

	List<Scenario> getAllScenarios();

    List<StubMapping> findByMetadata(StringValuePattern pattern);
}
