* @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
*/
public void modifyTestElement(TestElement s) {
super.configureTestElement(s);
if (s instanceof RestSampler) {
RestSampler sampler = (RestSampler) s;
sampler.setRequestBody(body.getText());
sampler.setMethod(httpMethods.getText());
sampler.setUseKeepAlive(useKeepAlive.isSelected());
sampler.setAutoRedirects(automaticRedirect.isSelected());
sampler.setHostBaseUrl(hostBaseUrl.getText());
sampler.setResource(resource.getText());
sampler.setPortNumber(port.getText());
sampler.setRequestHeaders(headers.getText());
}
}