quickfix.fix42.MessageCracker Maven / Gradle / Ivy
/* Generated Java Source File */
/*******************************************************************************
* Copyright (c) quickfixengine.org All rights reserved.
*
* This file is part of the QuickFIX FIX Engine
*
* This file may be distributed under the terms of the quickfixengine.org
* license as defined by quickfixengine.org and appearing in the file
* LICENSE included in the packaging of this file.
*
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
* THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE.
*
* See http://www.quickfixengine.org/LICENSE for licensing information.
*
* Contact [email protected] if any conditions of this licensing
* are not clear to you.
******************************************************************************/
package quickfix.fix42;
import quickfix.*;
import quickfix.field.*;
public class MessageCracker {
/**
* Callback for quickfix.Message message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(quickfix.Message message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXHeartbeat message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Heartbeat message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXLogon message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Logon message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXTestRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(TestRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXResendRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ResendRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXReject message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Reject message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXSequenceReset message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(SequenceReset message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXLogout message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Logout message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
/**
* Callback for FIXAdvertisement message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Advertisement message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXIndicationofInterest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(IndicationofInterest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXNews message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(News message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXEmail message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Email message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXQuoteRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(QuoteRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXQuote message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Quote message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXMassQuote message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(MassQuote message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXQuoteCancel message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(QuoteCancel message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXQuoteStatusRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(QuoteStatusRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXQuoteAcknowledgement message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(QuoteAcknowledgement message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXMarketDataRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(MarketDataRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXMarketDataSnapshotFullRefresh message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(MarketDataSnapshotFullRefresh message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXMarketDataIncrementalRefresh message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(MarketDataIncrementalRefresh message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXMarketDataRequestReject message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(MarketDataRequestReject message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXSecurityDefinitionRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(SecurityDefinitionRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXSecurityDefinition message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(SecurityDefinition message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXSecurityStatusRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(SecurityStatusRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXSecurityStatus message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(SecurityStatus message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXTradingSessionStatusRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(TradingSessionStatusRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXTradingSessionStatus message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(TradingSessionStatus message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXNewOrderSingle message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(NewOrderSingle message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXExecutionReport message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ExecutionReport message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXDontKnowTrade message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(DontKnowTrade message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXOrderCancelReplaceRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(OrderCancelReplaceRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXOrderCancelRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(OrderCancelRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXOrderCancelReject message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(OrderCancelReject message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXOrderStatusRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(OrderStatusRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXAllocation message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(Allocation message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXAllocationACK message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(AllocationACK message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXSettlementInstructions message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(SettlementInstructions message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXBidRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(BidRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXBidResponse message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(BidResponse message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXNewOrderList message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(NewOrderList message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXListStrikePrice message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ListStrikePrice message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXListStatus message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ListStatus message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXListExecute message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ListExecute message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXListCancelRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ListCancelRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXListStatusRequest message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(ListStatusRequest message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
throw new UnsupportedMessageType();
}
/**
* Callback for FIXBusinessMessageReject message.
*
* @param message
* @param sessionID
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void onMessage(BusinessMessageReject message, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
}
public void crack(quickfix.Message message, SessionID sessionID)
throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue {
crack42((Message) message, sessionID);
}
/**
* Cracker method for 42 messages.
*
* @throws FieldNotFound
* @throws UnsupportedMessageType
* @throws IncorrectTagValue
*/
public void crack42(Message message, SessionID sessionID)
throws UnsupportedMessageType, FieldNotFound, IncorrectTagValue {
String type = message.getHeader().getString(MsgType.FIELD);
if (type.equals(Heartbeat.MSGTYPE))
onMessage((Heartbeat)message, sessionID);
else if (type.equals(Logon.MSGTYPE))
onMessage((Logon)message, sessionID);
else if (type.equals(TestRequest.MSGTYPE))
onMessage((TestRequest)message, sessionID);
else if (type.equals(ResendRequest.MSGTYPE))
onMessage((ResendRequest)message, sessionID);
else if (type.equals(Reject.MSGTYPE))
onMessage((Reject)message, sessionID);
else if (type.equals(SequenceReset.MSGTYPE))
onMessage((SequenceReset)message, sessionID);
else if (type.equals(Logout.MSGTYPE))
onMessage((Logout)message, sessionID);
else if (type.equals(Advertisement.MSGTYPE))
onMessage((Advertisement)message, sessionID);
else if (type.equals(IndicationofInterest.MSGTYPE))
onMessage((IndicationofInterest)message, sessionID);
else if (type.equals(News.MSGTYPE))
onMessage((News)message, sessionID);
else if (type.equals(Email.MSGTYPE))
onMessage((Email)message, sessionID);
else if (type.equals(QuoteRequest.MSGTYPE))
onMessage((QuoteRequest)message, sessionID);
else if (type.equals(Quote.MSGTYPE))
onMessage((Quote)message, sessionID);
else if (type.equals(MassQuote.MSGTYPE))
onMessage((MassQuote)message, sessionID);
else if (type.equals(QuoteCancel.MSGTYPE))
onMessage((QuoteCancel)message, sessionID);
else if (type.equals(QuoteStatusRequest.MSGTYPE))
onMessage((QuoteStatusRequest)message, sessionID);
else if (type.equals(QuoteAcknowledgement.MSGTYPE))
onMessage((QuoteAcknowledgement)message, sessionID);
else if (type.equals(MarketDataRequest.MSGTYPE))
onMessage((MarketDataRequest)message, sessionID);
else if (type.equals(MarketDataSnapshotFullRefresh.MSGTYPE))
onMessage((MarketDataSnapshotFullRefresh)message, sessionID);
else if (type.equals(MarketDataIncrementalRefresh.MSGTYPE))
onMessage((MarketDataIncrementalRefresh)message, sessionID);
else if (type.equals(MarketDataRequestReject.MSGTYPE))
onMessage((MarketDataRequestReject)message, sessionID);
else if (type.equals(SecurityDefinitionRequest.MSGTYPE))
onMessage((SecurityDefinitionRequest)message, sessionID);
else if (type.equals(SecurityDefinition.MSGTYPE))
onMessage((SecurityDefinition)message, sessionID);
else if (type.equals(SecurityStatusRequest.MSGTYPE))
onMessage((SecurityStatusRequest)message, sessionID);
else if (type.equals(SecurityStatus.MSGTYPE))
onMessage((SecurityStatus)message, sessionID);
else if (type.equals(TradingSessionStatusRequest.MSGTYPE))
onMessage((TradingSessionStatusRequest)message, sessionID);
else if (type.equals(TradingSessionStatus.MSGTYPE))
onMessage((TradingSessionStatus)message, sessionID);
else if (type.equals(NewOrderSingle.MSGTYPE))
onMessage((NewOrderSingle)message, sessionID);
else if (type.equals(ExecutionReport.MSGTYPE))
onMessage((ExecutionReport)message, sessionID);
else if (type.equals(DontKnowTrade.MSGTYPE))
onMessage((DontKnowTrade)message, sessionID);
else if (type.equals(OrderCancelReplaceRequest.MSGTYPE))
onMessage((OrderCancelReplaceRequest)message, sessionID);
else if (type.equals(OrderCancelRequest.MSGTYPE))
onMessage((OrderCancelRequest)message, sessionID);
else if (type.equals(OrderCancelReject.MSGTYPE))
onMessage((OrderCancelReject)message, sessionID);
else if (type.equals(OrderStatusRequest.MSGTYPE))
onMessage((OrderStatusRequest)message, sessionID);
else if (type.equals(Allocation.MSGTYPE))
onMessage((Allocation)message, sessionID);
else if (type.equals(AllocationACK.MSGTYPE))
onMessage((AllocationACK)message, sessionID);
else if (type.equals(SettlementInstructions.MSGTYPE))
onMessage((SettlementInstructions)message, sessionID);
else if (type.equals(BidRequest.MSGTYPE))
onMessage((BidRequest)message, sessionID);
else if (type.equals(BidResponse.MSGTYPE))
onMessage((BidResponse)message, sessionID);
else if (type.equals(NewOrderList.MSGTYPE))
onMessage((NewOrderList)message, sessionID);
else if (type.equals(ListStrikePrice.MSGTYPE))
onMessage((ListStrikePrice)message, sessionID);
else if (type.equals(ListStatus.MSGTYPE))
onMessage((ListStatus)message, sessionID);
else if (type.equals(ListExecute.MSGTYPE))
onMessage((ListExecute)message, sessionID);
else if (type.equals(ListCancelRequest.MSGTYPE))
onMessage((ListCancelRequest)message, sessionID);
else if (type.equals(ListStatusRequest.MSGTYPE))
onMessage((ListStatusRequest)message, sessionID);
else if (type.equals(BusinessMessageReject.MSGTYPE))
onMessage((BusinessMessageReject)message, sessionID);
else
onMessage(message, sessionID);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy