X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fcom%2Fatt%2Fnsa%2Fmr%2Fclient%2FMRClientFactory.java;h=a51e7eb4ae06fc3cd7a3a19f6e759f144659bb91;hb=4cb1f9a13d30bdf0a2b4bd71b74ade305f5ff112;hp=97aa0b897635c9c8bb73db6f939f4904d2fabf78;hpb=7f18a630f28242d684330af528b296e2b17249c6;p=dmaap%2Fmessagerouter%2Fdmaapclient.git diff --git a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java index 97aa0b8..a51e7eb 100644 --- a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java +++ b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java @@ -657,11 +657,13 @@ public class MRClientFactory { sub.setUsername(props.getProperty("username")); sub.setPassword(props.getProperty("password")); } - sub.setRouterFilePath(props.getProperty("DME2preferredRouterFilePath")); + sub.setProps(props); sub.setHost(props.getProperty("host")); sub.setProtocolFlag(props.getProperty("TransportType")); sub.setfFilter(props.getProperty("filter")); + if (props.getProperty("TransportType").equalsIgnoreCase(ProtocolTypeConstants.DME2.getValue())) { + sub.setRouterFilePath(props.getProperty("DME2preferredRouterFilePath")); routeFilePath = props.getProperty("DME2preferredRouterFilePath"); routeReader = new FileReader(new File(routeFilePath)); prop = new Properties(); @@ -669,6 +671,8 @@ public class MRClientFactory { if (!fo.exists()) { routeWriter = new FileWriter(new File(routeFilePath)); } + } + return sub; } }