You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2003/11/16 03:17:27 UTC

cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui ProxyControlGui.java

sebb        2003/11/15 18:17:27

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui
                        ProxyControlGui.java
  Log:
  Allow user to deselect keep-alive on generated samplers
  
  Revision  Changes    Path
  1.25      +18 -1     jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
  
  Index: ProxyControlGui.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ProxyControlGui.java	15 Nov 2003 02:35:51 -0000	1.24
  +++ ProxyControlGui.java	16 Nov 2003 02:17:27 -0000	1.25
  @@ -132,6 +132,12 @@
   	 * Add an Assertion to the first sample of each set
   	 */
   	private JCheckBox addAssertions;
  +	
  +	/**
  +	 * Set/clear the Use Keep-Alive box on the samplers
  +	 * (default is true)
  +	 */
  +	private JCheckBox useKeepAlive;
   
       private ProxyControl model;
   
  @@ -198,6 +204,7 @@
               model.setCaptureHttpHeaders(httpHeaders.isSelected());
   			model.setSeparators(addSeparators.isSelected());
   			model.setAssertions(addAssertions.isSelected());
  +			model.setUseKeepAlive(useKeepAlive.isSelected());
           }
       }
   
  @@ -243,6 +250,7 @@
   		httpHeaders.setSelected(model.getPropertyAsBoolean(ProxyControl.CAPTURE_HTTP_HEADERS));
   		addSeparators.setSelected(model.getPropertyAsBoolean(ProxyControl.ADD_SEPARATORS));
   		addAssertions.setSelected(model.getPropertyAsBoolean(ProxyControl.ADD_ASSERTIONS));
  +		useKeepAlive.setSelected(model.getPropertyAsBoolean(ProxyControl.USE_KEEPALIVE,true));
           populateTable(includeModel, model.getIncludePatterns().iterator());
           populateTable(excludeModel, model.getExcludePatterns().iterator());
           repaint();
  @@ -490,12 +498,21 @@
   		addAssertions.addActionListener(this);
   		addAssertions.setActionCommand(ProxyControl.ADD_ASSERTIONS);
   
  +		useKeepAlive = new JCheckBox(JMeterUtils.getResString("proxy_usekeepalive"));
  +		useKeepAlive.setName(ProxyControl.ADD_ASSERTIONS);
  +		useKeepAlive.setSelected(false);
  +		useKeepAlive.addActionListener(this);
  +		useKeepAlive.setActionCommand(ProxyControl.ADD_ASSERTIONS);
  +
           HorizontalPanel panel = new HorizontalPanel();
           panel.add(label);
           panel.add(portField);
   
           panel.add(Box.createHorizontalStrut(10));
           panel.add(httpHeaders);
  +
  +		panel.add(Box.createHorizontalStrut(10));
  +		panel.add(useKeepAlive);
   
   		panel.add(Box.createHorizontalStrut(10));
   		panel.add(addSeparators);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org