/** * Invokes {@link HTTPSamplerBase#getIpSource()} * * @return the configured ip source for the associated test element */ protected String getIpSource() { return testElement.getIpSource(); }
/** * {@inheritDoc} */ @Override public void configure(TestElement element) { super.configure(element); final HTTPSamplerBase samplerBase = (HTTPSamplerBase) element; urlConfigGui.configure(element); retrieveEmbeddedResources.setSelected(samplerBase.isImageParser()); concurrentDwn.setSelected(samplerBase.isConcurrentDwn()); concurrentPool.setText(samplerBase.getConcurrentPool()); useMD5.setSelected(samplerBase.useMD5()); embeddedRE.setText(samplerBase.getEmbeddedUrlRE()); if (!isAJP) { sourceIpAddr.setText(samplerBase.getIpSource()); sourceIpType.setSelectedIndex(samplerBase.getIpSourceType()); proxyHost.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYHOST)); proxyPort.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYPORT)); proxyUser.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYUSER)); proxyPass.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.PROXYPASS)); httpImplementation.setSelectedItem(samplerBase.getPropertyAsString(HTTPSamplerBase.IMPLEMENTATION)); connectTimeOut.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.CONNECT_TIMEOUT)); responseTimeOut.setText(samplerBase.getPropertyAsString(HTTPSamplerBase.RESPONSE_TIMEOUT)); } }