Lines 160-165
Link Here
|
160 |
* Add a prefix to HTTP sample name recorded |
160 |
* Add a prefix to HTTP sample name recorded |
161 |
*/ |
161 |
*/ |
162 |
private JTextField prefixHTTPSampleName; |
162 |
private JTextField prefixHTTPSampleName; |
|
|
163 |
|
164 |
/* |
165 |
* Delay between HTTP requests |
166 |
*/ |
167 |
private JTextField proxyPauseHTTPSample; |
163 |
|
168 |
|
164 |
/** |
169 |
/** |
165 |
* Regular expression to include results based on content type |
170 |
* Regular expression to include results based on content type |
Lines 224-229
Link Here
|
224 |
private static final String ADD_SUGGESTED_EXCLUDES = "exclude_suggested"; |
229 |
private static final String ADD_SUGGESTED_EXCLUDES = "exclude_suggested"; |
225 |
|
230 |
|
226 |
private static final String PREFIX_HTTP_SAMPLER_NAME = "proxy_prefix_http_sampler_name"; // $NON-NLS-1$ |
231 |
private static final String PREFIX_HTTP_SAMPLER_NAME = "proxy_prefix_http_sampler_name"; // $NON-NLS-1$ |
|
|
232 |
|
233 |
private static final String PROXY_PAUSE_HTTP_SAMPLER = "proxy_pause_http_sampler"; // $NON-NLS-1$ |
227 |
//- action names |
234 |
//- action names |
228 |
|
235 |
|
229 |
// Resource names for column headers |
236 |
// Resource names for column headers |
Lines 279-284
Link Here
|
279 |
model.setUseKeepAlive(useKeepAlive.isSelected()); |
286 |
model.setUseKeepAlive(useKeepAlive.isSelected()); |
280 |
model.setSamplerDownloadImages(samplerDownloadImages.isSelected()); |
287 |
model.setSamplerDownloadImages(samplerDownloadImages.isSelected()); |
281 |
model.setPrefixHTTPSampleName(prefixHTTPSampleName.getText()); |
288 |
model.setPrefixHTTPSampleName(prefixHTTPSampleName.getText()); |
|
|
289 |
model.setProxyPauseHTTPSample(proxyPauseHTTPSample.getText()); |
282 |
model.setNotifyChildSamplerListenerOfFilteredSamplers(notifyChildSamplerListenerOfFilteredSamplersCB.isSelected()); |
290 |
model.setNotifyChildSamplerListenerOfFilteredSamplers(notifyChildSamplerListenerOfFilteredSamplersCB.isSelected()); |
283 |
model.setRegexMatch(regexMatch.isSelected()); |
291 |
model.setRegexMatch(regexMatch.isSelected()); |
284 |
model.setContentTypeInclude(contentTypeInclude.getText()); |
292 |
model.setContentTypeInclude(contentTypeInclude.getText()); |
Lines 631-636
Link Here
|
631 |
enableRestart(); |
639 |
enableRestart(); |
632 |
} else if(fieldName.equals(PREFIX_HTTP_SAMPLER_NAME)) { |
640 |
} else if(fieldName.equals(PREFIX_HTTP_SAMPLER_NAME)) { |
633 |
model.setPrefixHTTPSampleName(prefixHTTPSampleName.getText()); |
641 |
model.setPrefixHTTPSampleName(prefixHTTPSampleName.getText()); |
|
|
642 |
} else if(fieldName.equals(PROXY_PAUSE_HTTP_SAMPLER)) { |
643 |
try { |
644 |
Integer.parseInt(proxyPauseHTTPSample.getText()); |
645 |
} catch (NumberFormatException nfe) { |
646 |
int length = proxyPauseHTTPSample.getText().length(); |
647 |
if (length > 0) { |
648 |
JOptionPane.showMessageDialog(this, |
649 |
JMeterUtils.getResString("proxy_settings_pause_error_digits"), // $NON-NLS-1$ |
650 |
JMeterUtils.getResString("proxy_settings_pause_error_invalid_data"), // $NON-NLS-1$ |
651 |
JOptionPane.WARNING_MESSAGE); |
652 |
// Drop the last character: |
653 |
proxyPauseHTTPSample.setText(proxyPauseHTTPSample.getText().substring(0, length-1)); |
654 |
} |
655 |
} |
656 |
enableRestart(); |
634 |
} |
657 |
} |
635 |
} |
658 |
} |
636 |
|
659 |
|
Lines 817-826
Link Here
|
817 |
prefixHTTPSampleName = new JTextField(4); |
840 |
prefixHTTPSampleName = new JTextField(4); |
818 |
prefixHTTPSampleName.addKeyListener(this); |
841 |
prefixHTTPSampleName.addKeyListener(this); |
819 |
prefixHTTPSampleName.setName(PREFIX_HTTP_SAMPLER_NAME); |
842 |
prefixHTTPSampleName.setName(PREFIX_HTTP_SAMPLER_NAME); |
820 |
// TODO Not sure this is needed |
|
|
821 |
prefixHTTPSampleName.setActionCommand(ENABLE_RESTART); |
843 |
prefixHTTPSampleName.setActionCommand(ENABLE_RESTART); |
822 |
JLabel labelPrefix = new JLabel(JMeterUtils.getResString("proxy_prefix_http_sampler_name")); // $NON-NLS-1$ |
844 |
JLabel labelPrefix = new JLabel(JMeterUtils.getResString("proxy_prefix_http_sampler_name")); // $NON-NLS-1$ |
823 |
labelPrefix.setLabelFor(prefixHTTPSampleName); |
845 |
labelPrefix.setLabelFor(prefixHTTPSampleName); |
|
|
846 |
|
847 |
proxyPauseHTTPSample = new JTextField(6); |
848 |
proxyPauseHTTPSample.addKeyListener(this); |
849 |
proxyPauseHTTPSample.setName(PROXY_PAUSE_HTTP_SAMPLER); |
850 |
proxyPauseHTTPSample.setActionCommand(ENABLE_RESTART); |
851 |
JLabel labelProxyPause= new JLabel(JMeterUtils.getResString("proxy_pause_http_sampler")); // $NON-NLS-1$ |
852 |
labelProxyPause.setLabelFor(proxyPauseHTTPSample); |
824 |
|
853 |
|
825 |
JLabel labelSamplerType = new JLabel(JMeterUtils.getResString("proxy_sampler_type")); // $NON-NLS-1$ |
854 |
JLabel labelSamplerType = new JLabel(JMeterUtils.getResString("proxy_sampler_type")); // $NON-NLS-1$ |
826 |
labelSamplerType.setLabelFor(samplerTypeName); |
855 |
labelSamplerType.setLabelFor(samplerTypeName); |
Lines 843-848
Link Here
|
843 |
gbc.weightx = 3; |
872 |
gbc.weightx = 3; |
844 |
gbc.fill=GridBagConstraints.HORIZONTAL; |
873 |
gbc.fill=GridBagConstraints.HORIZONTAL; |
845 |
panel.add(prefixHTTPSampleName, gbc.clone()); |
874 |
panel.add(prefixHTTPSampleName, gbc.clone()); |
|
|
875 |
gbc.gridx = 0; |
876 |
gbc.gridy++; |
877 |
panel.add(labelProxyPause, gbc.clone()); |
878 |
gbc.gridx++; |
879 |
gbc.weightx = 3; |
880 |
gbc.fill=GridBagConstraints.HORIZONTAL; |
881 |
panel.add(proxyPauseHTTPSample, gbc.clone()); |
846 |
gbc.weightx = 1; |
882 |
gbc.weightx = 1; |
847 |
gbc.gridx = 0; |
883 |
gbc.gridx = 0; |
848 |
gbc.gridy++; |
884 |
gbc.gridy++; |