|
|
@@ -351,7 +351,7 @@ public class SourceHandler { |
|
|
|
if (ObjectUtils.isEmpty(headers)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
request.setHeaders(aclculationPlaceholderMap(request.getHeaders(), request)); |
|
|
|
request.setHeaders(calculationPlaceholderMap(request.getHeaders(), request)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@@ -370,7 +370,7 @@ public class SourceHandler { |
|
|
|
/** |
|
|
|
* 计算占位符的值,并返回此map |
|
|
|
*/ |
|
|
|
private Map<String, Object> aclculationPlaceholderMap(Map<String, Object> placeholderMap, HttpRequestParams request) { |
|
|
|
private Map<String, Object> calculationPlaceholderMap(Map<String, Object> placeholderMap, HttpRequestParams request) { |
|
|
|
|
|
|
|
for (String key : placeholderMap.keySet()) { |
|
|
|
Object placeholderValue = placeholderMap.get(key); |
|
|
@@ -389,7 +389,7 @@ public class SourceHandler { |
|
|
|
if (ObjectUtils.isEmpty(body)) { |
|
|
|
return; |
|
|
|
} |
|
|
|
request.setBody(aclculationPlaceholderMap(request.getBody(), request)); |
|
|
|
request.setBody(calculationPlaceholderMap(request.getBody(), request)); |
|
|
|
// for (String key : body.keySet()) { |
|
|
|
// Object value = body.get(key); |
|
|
|
// Matcher matcher = RegexConstants.PLACEHOLDER_PATTERN.matcher(value.toString()); |
|
|
@@ -417,7 +417,7 @@ public class SourceHandler { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
aclculationPlaceholderMap(patternMap, request); |
|
|
|
calculationPlaceholderMap(patternMap, request); |
|
|
|
// Map<String, String> placeholderExpressions = request.getPlaceholderExpressions(); |
|
|
|
|
|
|
|
|
|
|
|