use of org.apache.jmeter.protocol.http.proxy.ProxyControl in project jmeter by apache.
the class ProxyControlGui method modifyTestElement.
/** {@inheritDoc} */
@Override
public void modifyTestElement(TestElement el) {
GuiUtils.stopTableEditing(excludeTable);
GuiUtils.stopTableEditing(includeTable);
configureTestElement(el);
if (el instanceof ProxyControl) {
model = (ProxyControl) el;
model.setPort(portField.getText());
model.setSslDomains(sslDomains.getText());
setIncludeListInProxyControl(model);
setExcludeListInProxyControl(model);
model.setCaptureHttpHeaders(httpHeaders.isSelected());
model.setGroupingMode(groupingMode.getSelectedIndex());
model.setAssertions(addAssertions.isSelected());
if (samplerTypeName.getSelectedIndex() < HTTPSamplerFactory.getImplementations().length) {
model.setSamplerTypeName(HTTPSamplerFactory.getImplementations()[samplerTypeName.getSelectedIndex()]);
} else {
model.setSamplerTypeName(USE_DEFAULT_HTTP_IMPL);
}
model.setSamplerRedirectAutomatically(samplerRedirectAutomatically.isSelected());
model.setSamplerFollowRedirects(samplerFollowRedirects.isSelected());
model.setUseKeepAlive(useKeepAlive.isSelected());
model.setSamplerDownloadImages(samplerDownloadImages.isSelected());
model.setPrefixHTTPSampleName(prefixHTTPSampleName.getText());
model.setNotifyChildSamplerListenerOfFilteredSamplers(notifyChildSamplerListenerOfFilteredSamplersCB.isSelected());
model.setRegexMatch(regexMatch.isSelected());
model.setContentTypeInclude(contentTypeInclude.getText());
model.setContentTypeExclude(contentTypeExclude.getText());
TreeNodeWrapper nw = (TreeNodeWrapper) targetNodes.getSelectedItem();
if (nw == null) {
model.setTarget(null);
} else {
model.setTarget(nw.getTreeNode());
}
}
}
Aggregations