原:
private final int HTTP_GET = 1;
private final int HTTP_POST = 2;
private final int HTTP_PUT = 3;
private final int HTTP_DELETE = 4;
protected class HttpExchangeResult {
private String queryString;
private Map headerMap = new HashMap<>();
private Map bodyMap = new HashMap<>();
public HttpExchangeResult() {
return envelopMap;
}
private HttpExchangeResult exchangeByRule(Map headerMap, Map bodyMap, HttpSelfDefRuleEntity ruleEntity, Exchange exchange) throws Exception {
HttpExchangeResult result = new HttpExchangeResult();
// get cfg query map
// Map cfgQueryMap = new HashMap();
// cfgQueryMap.put("name", new HttpSelfDefParameter("name", "header", true, true));
// cfgQueryMap.put("age", new HttpSelfDefParameter("age", "body", true, false));
// cfgQueryMap.put("test", new HttpSelfDefParameter("1", null, false, true));
改:
private final int HTTP_GET = 1;
private final int HTTP_POST = 2;
private final int HTTP_PUT = 3;
private final int HTTP_DELETE = 4;
protected static final class HttpExchangeResult {
private String queryString;
private Map headerMap = new HashMap<>();
private Map bodyMap = new HashMap<>();
public HttpExchangeResult() {
return envelopMap;
}
private HttpExchangeResult exchangeByRule(Map headerMap, Map bodyMap, HttpSelfDefRuleEntity ruleEntity, Exchange exchange) throws Exception {
HttpExchangeResult result = new EnvRequestProcessor.HttpExchangeResult();
// get cfg query map
// Map cfgQueryMap = new HashMap();
// cfgQueryMap.put("name", new HttpSelfDefParameter("name", "header", true, true));
// cfgQueryMap.put("age", new HttpSelfDefParameter("age", "body", true, false));
// cfgQueryMap.put("test", new HttpSelfDefParameter("1", null, false, true));