quickfix.fixt11.MessageFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quickfixj-messages-fixt11 Show documentation
Show all versions of quickfixj-messages-fixt11 Show documentation
QuickFIX/J Message classes for FIXT 1.1
/* 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.fixt11;
import quickfix.Message;
import quickfix.Group;
public class MessageFactory implements quickfix.MessageFactory {
public Message create(String beginString, String msgType) {
switch (msgType) {
case quickfix.fixt11.Heartbeat.MSGTYPE:
return new quickfix.fixt11.Heartbeat();
case quickfix.fixt11.TestRequest.MSGTYPE:
return new quickfix.fixt11.TestRequest();
case quickfix.fixt11.ResendRequest.MSGTYPE:
return new quickfix.fixt11.ResendRequest();
case quickfix.fixt11.Reject.MSGTYPE:
return new quickfix.fixt11.Reject();
case quickfix.fixt11.SequenceReset.MSGTYPE:
return new quickfix.fixt11.SequenceReset();
case quickfix.fixt11.Logout.MSGTYPE:
return new quickfix.fixt11.Logout();
case quickfix.fixt11.Logon.MSGTYPE:
return new quickfix.fixt11.Logon();
}
return new quickfix.fixt11.Message();
}
public Group create(String beginString, String msgType, int correspondingFieldID) {
switch (msgType) {
case quickfix.fixt11.Logon.MSGTYPE:
switch (correspondingFieldID) {
case quickfix.field.NoMsgTypes.FIELD:
return new quickfix.fixt11.Logon.NoMsgTypes();
}
break;
}
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy