philadelphia-core: Add 'FIXConnection#setTargetCompID()'
@@ -220,6 +220,15 @@ public class FIXConnection implements Closeable {
return targetCompId;
}
+ /**
+ * Set the TargetCompID(56).
+ *
+ * @param targetCompId the TargetCompID(56).
+ */
+ public void setTargetCompID(String targetCompId) {
+ this.targetCompId = targetCompId;
+ }
+
/**
* Create a message container.
*
@@ -673,7 +682,7 @@ public class FIXConnection implements Closeable {
return;
}
- targetCompId = value.toString();
+ setTargetCompID(value.toString());
}
statusListener.logon(FIXConnection.this, message);
