public DataDictionary getDataDictionary() { if (!sessionID.isFIXT()) { // For pre-FIXT sessions, the session data dictionary is the same as the application // data dictionary. return dataDictionaryProvider.getSessionDataDictionary(sessionID.getBeginString()); } else { throw new SessionException("No default data dictionary for FIXT 1.1 and newer"); } }
public DataDictionary getDataDictionary() { if (!sessionID.isFIXT()) { // For pre-FIXT sessions, the session data dictionary is the same as the application // data dictionary. return dataDictionaryProvider.getSessionDataDictionary(sessionID.getBeginString()); } else { throw new SessionException("No default data dictionary for FIXT 1.1 and newer"); } }
public DataDictionary getDataDictionary() { if (!sessionID.isFIXT()) { // For pre-FIXT sessions, the session data dictionary is the same as the application // data dictionary. return dataDictionaryProvider.getSessionDataDictionary(sessionID.getBeginString()); } else { throw new SessionException("No default data dictionary for FIXT 1.1 and newer"); } }
/** * Send a message to the session specified by the provided target company * ID. The sender company ID is provided as an argument rather than from the * message. The session qualifier is used to distinguish sessions with the * same target identifiers. * * @param message a FIX message * @param senderCompID the sender's company ID * @param targetCompID the target's company ID * @param qualifier a session qualifier * @return true is send was successful, false otherwise * @throws SessionNotFound if session could not be located */ public static boolean sendToTarget(Message message, String senderCompID, String targetCompID, String qualifier) throws SessionNotFound { try { return sendToTarget(message, new SessionID(message.getHeader().getString(BeginString.FIELD), senderCompID, targetCompID, qualifier)); } catch (final SessionNotFound e) { throw e; } catch (final Exception e) { throw new SessionException(e); } }
private boolean doTargetTooLow(Message msg) throws FieldNotFound, IOException { if (!isPossibleDuplicate(msg)) { final int msgSeqNum = msg.getHeader().getInt(MsgSeqNum.FIELD); final String text = "MsgSeqNum too low, expecting " + getExpectedTargetNum() + " but received " + msgSeqNum; generateLogout(text); throw new SessionException(text); } return validatePossDup(msg); }
private boolean doTargetTooLow(Message msg) throws FieldNotFound, IOException { if (!isPossibleDuplicate(msg)) { final int msgSeqNum = msg.getHeader().getInt(MsgSeqNum.FIELD); final String text = "MsgSeqNum too low, expecting " + getExpectedTargetNum() + " but received " + msgSeqNum; generateLogout(text); throw new SessionException(text); } return validatePossDup(msg); }
/** * Send a message to the session specified by the provided target company * ID. The sender company ID is provided as an argument rather than from the * message. The session qualifier is used to distinguish sessions with the * same target identifiers. * * @param message a FIX message * @param senderCompID the sender's company ID * @param targetCompID the target's company ID * @param qualifier a session qualifier * @return true is send was successful, false otherwise * @throws SessionNotFound if session could not be located */ public static boolean sendToTarget(Message message, String senderCompID, String targetCompID, String qualifier) throws SessionNotFound { try { return sendToTarget(message, new SessionID(message.getHeader().getString(BeginString.FIELD), senderCompID, targetCompID, qualifier)); } catch (final SessionNotFound e) { throw e; } catch (final Exception e) { throw new SessionException(e); } }
/** * Send a message to the session specified by the provided target company * ID. The sender company ID is provided as an argument rather than from the * message. The session qualifier is used to distinguish sessions with the * same target identifiers. * * @param message a FIX message * @param senderCompID the sender's company ID * @param targetCompID the target's company ID * @param qualifier a session qualifier * @return true is send was successful, false otherwise * @throws SessionNotFound if session could not be located */ public static boolean sendToTarget(Message message, String senderCompID, String targetCompID, String qualifier) throws SessionNotFound { try { return sendToTarget(message, new SessionID(message.getHeader().getString(BeginString.FIELD), senderCompID, targetCompID, qualifier)); } catch (final SessionNotFound e) { throw e; } catch (final Exception e) { throw new SessionException(e); } }
private boolean doTargetTooLow(Message msg) throws FieldNotFound, IOException { if (!isPossibleDuplicate(msg)) { final int msgSeqNum = msg.getHeader().getInt(MsgSeqNum.FIELD); final String text = "MsgSeqNum too low, expecting " + getExpectedTargetNum() + " but received " + msgSeqNum; generateLogout(text); throw new SessionException(text); } return validatePossDup(msg); }
final String errorMessage = "Tried to send a reject while not logged on: " + reason + (reason.endsWith("" + field) ? "" : " (field " + field + ")"); throw new SessionException(errorMessage);
final String errorMessage = "Tried to send a reject while not logged on: " + reason + (reason.endsWith("" + field) ? "" : " (field " + field + ")"); throw new SessionException(errorMessage);
final String errorMessage = "Tried to send a reject while not logged on: " + reason + " (field " + field + ")"; throw new SessionException(errorMessage);
throw new SessionException("Logon state is not valid for message (MsgType=" + msgType + ")");
throw new SessionException("Logon state is not valid for message (MsgType=" + msgType + ")");
throw new SessionException("Logon state is not valid for message (MsgType=" + msgType + ")");