Author: sebb
Date: Mon Apr 2 18:02:51 2007
New Revision: 524987
URL: http://svn.apache.org/viewvc?view=rev&rev=524987
Log:
Add port constructor; refactor to use private method ins constructors
Modified:
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorControl.java
Modified:
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorControl.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorControl.java?view=diff&rev=524987&r1=524986&r2=524987
==============================================================================
---
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorControl.java
(original)
+++
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/control/HttpMirrorControl.java
Mon Apr 2 18:02:51 2007
@@ -38,11 +38,19 @@
public static final String PORT = "HttpMirrorControlGui.port"; //
$NON-NLS-1$
public HttpMirrorControl() {
- setPort(DEFAULT_PORT);
+ initPort(DEFAULT_PORT);
+ }
+
+ public HttpMirrorControl(int port) {
+ initPort(port);
+ }
+
+ private void initPort(int port){
+ setProperty(new IntegerProperty(PORT, port));
}
public void setPort(int port) {
- this.setProperty(new IntegerProperty(PORT, port));
+ initPort(port);
}
public void setPort(String port) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]