public PropertyExpansion[] getPropertyExpansions() {
if (testRequest == null) {
return new PropertyExpansion[0];
}
PropertyExpansionsResult result = new PropertyExpansionsResult(this, testRequest);
result.extractAndAddAll("requestContent");
result.extractAndAddAll("endpoint");
result.extractAndAddAll("username");
result.extractAndAddAll("password");
result.extractAndAddAll("domain");
StringToStringsMap requestHeaders = testRequest.getRequestHeaders();
for (Map.Entry<String, List<String>> headerEntry : requestHeaders.entrySet()) {
for (String value : headerEntry.getValue()) {
result.extractAndAddAll(new HttpTestRequestStep.RequestHeaderHolder(headerEntry.getKey(), value,
testRequest), "value");
}
}
testRequest.addWsaPropertyExpansions(result, testRequest.getWsaConfig(), this);
testRequest.addJMSHeaderExpansions(result, testRequest.getJMSHeaderConfig(), this);
return result.toArray(new PropertyExpansion[result.size()]);
}