/** * Set the value. * * @param value a value container */ public void set(FIXValue value) { offset = 0; length = value.length(); System.arraycopy(value.bytes, 0, bytes, 0, length + 1); }
private void handleTooLowMsgSeqNum(FIXMessage message, FIXValue msgType, long msgSeqNum) throws IOException { if (msgType.length() != 1 || msgType.asChar() != SequenceReset) { FIXValue possDupFlag = message.valueOf(PossDupFlag); if (possDupFlag == null || possDupFlag.asChar() != 'Y') statusListener.tooLowMsgSeqNum(FIXConnection.this, msgSeqNum, rxMsgSeqNum); } }
private void handleTooLowMsgSeqNum(FIXMessage message, FIXValue msgType, long msgSeqNum) throws IOException { if (msgType.length() != 1 || msgType.asChar() != SequenceReset) { FIXValue possDupFlag = message.valueOf(PossDupFlag); if (possDupFlag == null || !possDupFlag.asBoolean()) statusListener.tooLowMsgSeqNum(FIXConnection.this, msgSeqNum, rxMsgSeqNum); } }
@Override public void message(FIXMessage message) throws IOException { FIXValue msgType = message.getMsgType(); if (msgType.length() != 1) { invalidMsgType(message); return; } switch (msgType.asChar()) { case NewOrderSingle: newOrderSingle(message); break; case OrderCancelReplaceRequest: orderCancel(message, OrderCancelReplaceRequest); break; case OrderCancelRequest: orderCancel(message, OrderCancelRequest); break; default: invalidMsgType(message); break; } }
FIXValue msgType = message.getMsgType(); if (msgType.length() != 1 || msgType.asChar() != OrderSingle) return; if (clOrdId.length() == 0) { connection.sendReject(message.getMsgSeqNum(), 1, "ClOrdID(11) not found"); return; if (symbol.length() == 0) { connection.sendReject(message.getMsgSeqNum(), 1, "Symbol(55) not found"); return; if (orderQty.length() == 0) { connection.sendReject(message.getMsgSeqNum(), 1, "OrderQty(38) not found"); return; if (price.length() == 0) { connection.sendReject(message.getMsgSeqNum(), 1, "Price(44) not found"); return;