Lines 54-59
Link Here
|
54 |
|
54 |
|
55 |
private static String PROTOCOL = "protocol"; // $NON-NLS-1$ |
55 |
private static String PROTOCOL = "protocol"; // $NON-NLS-1$ |
56 |
|
56 |
|
|
|
57 |
private static String CONTENT_ENCODING = "content_encoding"; // $NON-NLS-1$ |
58 |
|
57 |
private static String PATH = "path"; // $NON-NLS-1$ |
59 |
private static String PATH = "path"; // $NON-NLS-1$ |
58 |
|
60 |
|
59 |
private static String FOLLOW_REDIRECTS = "follow_redirects"; // $NON-NLS-1$ |
61 |
private static String FOLLOW_REDIRECTS = "follow_redirects"; // $NON-NLS-1$ |
Lines 68-73
Link Here
|
68 |
|
70 |
|
69 |
private JTextField protocol; |
71 |
private JTextField protocol; |
70 |
|
72 |
|
|
|
73 |
private JTextField contentEncoding; |
74 |
|
71 |
private JTextField path; |
75 |
private JTextField path; |
72 |
|
76 |
|
73 |
private JCheckBox followRedirects; |
77 |
private JCheckBox followRedirects; |
Lines 96-104
Link Here
|
96 |
path.setText(""); // $NON-NLS-1$ |
100 |
path.setText(""); // $NON-NLS-1$ |
97 |
port.setText(""); // $NON-NLS-1$ |
101 |
port.setText(""); // $NON-NLS-1$ |
98 |
protocol.setText(""); // $NON-NLS-1$ |
102 |
protocol.setText(""); // $NON-NLS-1$ |
|
|
103 |
contentEncoding.setText(""); // $NON-NLS-1$ |
99 |
useKeepAlive.setSelected(true); |
104 |
useKeepAlive.setSelected(true); |
100 |
argsPanel.clear(); |
105 |
argsPanel.clear(); |
101 |
|
|
|
102 |
} |
106 |
} |
103 |
|
107 |
|
104 |
public TestElement createTestElement() { |
108 |
public TestElement createTestElement() { |
Lines 113-118
Link Here
|
113 |
element.setProperty(HTTPSamplerBase.PORT, port.getText()); |
117 |
element.setProperty(HTTPSamplerBase.PORT, port.getText()); |
114 |
element.setProperty(HTTPSamplerBase.PROTOCOL, protocol.getText()); |
118 |
element.setProperty(HTTPSamplerBase.PROTOCOL, protocol.getText()); |
115 |
element.setProperty(HTTPSamplerBase.METHOD, method.getText()); |
119 |
element.setProperty(HTTPSamplerBase.METHOD, method.getText()); |
|
|
120 |
element.setProperty(HTTPSamplerBase.CONTENT_ENCODING, contentEncoding.getText()); |
116 |
element.setProperty(HTTPSamplerBase.PATH, path.getText()); |
121 |
element.setProperty(HTTPSamplerBase.PATH, path.getText()); |
117 |
element.setProperty(new BooleanProperty(HTTPSamplerBase.FOLLOW_REDIRECTS, followRedirects.isSelected())); |
122 |
element.setProperty(new BooleanProperty(HTTPSamplerBase.FOLLOW_REDIRECTS, followRedirects.isSelected())); |
118 |
element.setProperty(new BooleanProperty(HTTPSamplerBase.AUTO_REDIRECTS, autoRedirects.isSelected())); |
123 |
element.setProperty(new BooleanProperty(HTTPSamplerBase.AUTO_REDIRECTS, autoRedirects.isSelected())); |
Lines 141-146
Link Here
|
141 |
} |
146 |
} |
142 |
protocol.setText(el.getPropertyAsString(HTTPSamplerBase.PROTOCOL)); |
147 |
protocol.setText(el.getPropertyAsString(HTTPSamplerBase.PROTOCOL)); |
143 |
method.setText(el.getPropertyAsString(HTTPSamplerBase.METHOD)); |
148 |
method.setText(el.getPropertyAsString(HTTPSamplerBase.METHOD)); |
|
|
149 |
contentEncoding.setText(el.getPropertyAsString(HTTPSamplerBase.CONTENT_ENCODING)); |
144 |
path.setText(el.getPropertyAsString(HTTPSamplerBase.PATH)); |
150 |
path.setText(el.getPropertyAsString(HTTPSamplerBase.PATH)); |
145 |
followRedirects.setSelected(((AbstractTestElement) el).getPropertyAsBoolean(HTTPSamplerBase.FOLLOW_REDIRECTS)); |
151 |
followRedirects.setSelected(((AbstractTestElement) el).getPropertyAsBoolean(HTTPSamplerBase.FOLLOW_REDIRECTS)); |
146 |
|
152 |
|
Lines 251-259
Link Here
|
251 |
// PROTOCOL |
257 |
// PROTOCOL |
252 |
protocol = new JTextField(20); |
258 |
protocol = new JTextField(20); |
253 |
protocol.setName(PROTOCOL); |
259 |
protocol.setName(PROTOCOL); |
|
|
260 |
// CONTENT_ENCODING |
261 |
contentEncoding = new JTextField(10); |
262 |
contentEncoding.setName(CONTENT_ENCODING); |
254 |
|
263 |
|
255 |
JLabel protocolLabel = new JLabel(JMeterUtils.getResString("protocol")); // $NON-NLS-1$ |
264 |
JLabel protocolLabel = new JLabel(JMeterUtils.getResString("protocol")); // $NON-NLS-1$ |
256 |
protocolLabel.setLabelFor(protocol); |
265 |
protocolLabel.setLabelFor(protocol); |
|
|
266 |
JLabel contentEncodingLabel = new JLabel(JMeterUtils.getResString("content_encoding")); // $NON-NLS-1$ |
267 |
protocolLabel.setLabelFor(contentEncoding); |
257 |
method = new JLabeledChoice(JMeterUtils.getResString("method"), // $NON-NLS-1$ |
268 |
method = new JLabeledChoice(JMeterUtils.getResString("method"), // $NON-NLS-1$ |
258 |
HTTPSamplerBase.getValidMethodsAsArray()); |
269 |
HTTPSamplerBase.getValidMethodsAsArray()); |
259 |
|
270 |
|
Lines 265-270
Link Here
|
265 |
|
276 |
|
266 |
panel.add(method); |
277 |
panel.add(method); |
267 |
panel.setMinimumSize(panel.getPreferredSize()); |
278 |
panel.setMinimumSize(panel.getPreferredSize()); |
|
|
279 |
panel.add(Box.createHorizontalStrut(5)); |
280 |
|
281 |
panel.add(contentEncodingLabel); |
282 |
panel.add(contentEncoding); |
268 |
return panel; |
283 |
return panel; |
269 |
} |
284 |
} |
270 |
|
285 |
|