/** * @return the default application version ID for messages sent from this session */ public ApplVerID getSenderDefaultApplicationVersionID() { return new ApplVerID(senderDefaultApplVerID.getValue()); }
@Override public Message create(String beginString, ApplVerID applVerID, String msgType) { MessageFactory messageFactory = messageFactories.get(beginString); if (beginString.equals(BEGINSTRING_FIXT11) && !MessageUtils.isAdminMessage(msgType)) { if (applVerID == null) { applVerID = new ApplVerID(defaultApplVerID.getValue()); } messageFactory = messageFactories.get(MessageUtils.toBeginString(applVerID)); } if (messageFactory != null) { return messageFactory.create(beginString, applVerID, msgType); } Message message = new Message(); message.getHeader().setString(MsgType.FIELD, msgType); return message; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } AppVersionKey other = (AppVersionKey) obj; if (applVerID == null) { if (other.applVerID != null) { return false; } } else if (!applVerID.equals(other.applVerID)) { return false; } return true; } }
/** * Convert an ApplVerID to a "begin string" * * @param applVerID * @return the begin string for the specified ApplVerID. * @throws QFJException if conversion fails. * @see ApplVerID */ public static String toBeginString(ApplVerID applVerID) throws QFJException { final String beginString = applVerIDtoBeginString.get(applVerID.getValue()); if (beginString == null) { throw new QFJException("Unknown or unsupported ApplVerID: " + applVerID.getValue()); } return beginString; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((applVerID == null) ? 0 : applVerID.hashCode()); return result; }
/** * Convert an ApplVerID to a "begin string" * * @param applVerID * @return the begin string for the specified ApplVerID. * @throws QFJException if conversion fails. * @see ApplVerID */ public static String toBeginString(ApplVerID applVerID) throws QFJException { final String beginString = applVerIDtoBeginString.get(applVerID.getValue()); if (beginString == null) { throw new QFJException("Unknown or unsupported ApplVerID: " + applVerID.getValue()); } return beginString; }
/** * @return the default application version ID for messages sent from this session */ public ApplVerID getSenderDefaultApplicationVersionID() { return new ApplVerID(senderDefaultApplVerID.getValue()); }
@Override public Message create(String beginString, ApplVerID applVerID, String msgType) { MessageFactory messageFactory = messageFactories.get(beginString); if (beginString.equals(BEGINSTRING_FIXT11) && !MessageUtils.isAdminMessage(msgType)) { if (applVerID == null) { applVerID = new ApplVerID(defaultApplVerID.getValue()); } messageFactory = messageFactories.get(MessageUtils.toBeginString(applVerID)); } if (messageFactory != null) { return messageFactory.create(beginString, applVerID, msgType); } Message message = new Message(); message.getHeader().setString(MsgType.FIELD, msgType); return message; }
/** * Convert an ApplVerID to a "begin string" * * @param applVerID * @return the begin string for the specified ApplVerID. * @throws QFJException if conversion fails. * @see ApplVerID */ public static String toBeginString(ApplVerID applVerID) throws QFJException { final String beginString = applVerIDtoBeginString.get(applVerID.getValue()); if (beginString == null) { throw new QFJException("Unknown or unsupported ApplVerID: " + applVerID.getValue()); } return beginString; }
/** * @return the default application version ID for messages sent from this session */ public ApplVerID getSenderDefaultApplicationVersionID() { return new ApplVerID(senderDefaultApplVerID.getValue()); }
@Override protected void processMessage(IoSession protocolSession, Message message) throws Exception { if (message.getHeader().getString(MsgType.FIELD).equals(MsgType.LOGON)) { final SessionID sessionID = MessageUtils.getReverseSessionID(message); if (sessionID.isFIXT()) { if (message.isSetField(DefaultApplVerID.FIELD)) { final ApplVerID applVerID = new ApplVerID(message.getString(DefaultApplVerID.FIELD)); quickfixSession.setTargetDefaultApplicationVersionID(applVerID); quickfixSession.getLog().onEvent("Setting DefaultApplVerID (" + DefaultApplVerID.FIELD + "=" + applVerID.getValue() + ") from Logon"); } } } eventHandlingStrategy.onMessage(quickfixSession, message); }
switch(inApplVerId.getValue()) { case quickfix.field.ApplVerID.FIX40: return FIX40;
public quickfix.field.ApplVerID getApplVerID() throws FieldNotFound { return get(new quickfix.field.ApplVerID()); }
@Override protected void processMessage(IoSession protocolSession, Message message) throws Exception { if (message.getHeader().getString(MsgType.FIELD).equals(MsgType.LOGON)) { final SessionID sessionID = MessageUtils.getReverseSessionID(message); if (sessionID.isFIXT()) { if (message.isSetField(DefaultApplVerID.FIELD)) { final ApplVerID applVerID = new ApplVerID(message.getString(DefaultApplVerID.FIELD)); quickfixSession.setTargetDefaultApplicationVersionID(applVerID); quickfixSession.getLog().onEvent("Setting DefaultApplVerID (" + DefaultApplVerID.FIELD + "=" + applVerID.getValue() + ") from Logon"); } } } eventHandlingStrategy.onMessage(quickfixSession, message); }
public quickfix.field.ApplVerID getApplVerID() throws FieldNotFound { return get(new quickfix.field.ApplVerID()); }
@Override protected void processMessage(IoSession protocolSession, Message message) throws Exception { if (message.getHeader().getString(MsgType.FIELD).equals(MsgType.LOGON)) { final SessionID sessionID = MessageUtils.getReverseSessionID(message); if (sessionID.isFIXT()) { if (message.isSetField(DefaultApplVerID.FIELD)) { final ApplVerID applVerID = new ApplVerID(message.getString(DefaultApplVerID.FIELD)); quickfixSession.setTargetDefaultApplicationVersionID(applVerID); quickfixSession.getLog().onEvent("Setting DefaultApplVerID (" + DefaultApplVerID.FIELD + "=" + applVerID.getValue() + ") from Logon"); } } } eventHandlingStrategy.onMessage(quickfixSession, message); }
public quickfix.field.ApplVerID getApplVerID() throws FieldNotFound { return get(new quickfix.field.ApplVerID()); }
if (sessionID.isFIXT()) { // QFJ-592 if (message.isSetField(DefaultApplVerID.FIELD)) { final ApplVerID applVerID = new ApplVerID( message.getString(DefaultApplVerID.FIELD)); qfSession.setTargetDefaultApplicationVersionID(applVerID); sessionLog.onEvent("Setting DefaultApplVerID (" + DefaultApplVerID.FIELD + "=" + applVerID.getValue() + ") from Logon");