@Service public class MockRuleServiceImpl extends Object implements IMockRuleService
Modifier and Type | Field and Description |
---|---|
static Map<String,MockRule> |
mockRuleMap |
Constructor and Description |
---|
MockRuleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Boolean |
addMockRule(MockRule mockRule) |
Boolean |
deleteMockRule(String requestPath) |
String |
getMockData(String requestPath) |
MockRule |
getMockRule(String requestPath) |
List<MockRule> |
getMockRuleList(String requestPathKeyword) |
Boolean |
updateMockRule(MockRule mockRule) |
public List<MockRule> getMockRuleList(String requestPathKeyword) throws Exception
getMockRuleList
in interface IMockRuleService
Exception
public Boolean addMockRule(MockRule mockRule) throws Exception
addMockRule
in interface IMockRuleService
Exception
public Boolean updateMockRule(MockRule mockRule) throws Exception
updateMockRule
in interface IMockRuleService
Exception
public Boolean deleteMockRule(String requestPath) throws Exception
deleteMockRule
in interface IMockRuleService
Exception
public MockRule getMockRule(String requestPath) throws Exception
getMockRule
in interface IMockRuleService
Exception
public String getMockData(String requestPath) throws Exception
getMockData
in interface IMockRuleService
Exception
Copyright © 2022. All rights reserved.