public FIXOutTransportInfo(String targetEPR) {
if (!targetEPR.startsWith(FIXConstants.FIX_PREFIX)) {
handleException("Invalid FIX EPR " + targetEPR + ". The EPR prefix must be " +
FIXConstants.FIX_PREFIX);
}
else {
Hashtable< String,String > properties = FIXUtils.getProperties(targetEPR);
this.sessionID = new SessionID(
properties.get(FIXConstants.BEGIN_STRING),
properties.get(FIXConstants.SENDER_COMP_ID),
properties.get(FIXConstants.SENDER_SUB_ID),
properties.get(FIXConstants.SENDER_LOCATION_ID),
properties.get(FIXConstants.TARGET_COMP_ID),
properties.get(FIXConstants.TARGET_SUB_ID),
properties.get(FIXConstants.TARGET_LOCATION_ID),
properties.get(FIXConstants.SESSION_QUALIFIER));
this.log = LogFactory.getLog(this.getClass());
}
}
Constructs a FIXOutTransportInfo out of a FIX EPR. Reads the parameters in the given
EPR and creates a SessionID out of them Parameters:
targetEPR - a valid FIX EPR
|