use of quickfix.DataDictionary in project camel by apache.
the class QuickfixjMessageJsonTransformer method transform.
public String transform(Message message) throws FieldNotFound, ConfigError {
SessionID sessionID = MessageUtils.getSessionID(message);
Session session = Session.lookupSession(sessionID);
DataDictionary dataDictionary = session.getDataDictionary();
if (dataDictionary == null) {
throw new IllegalStateException("No Data Dictionary. Exchange must reference an existing session");
}
return transform(message, dataDictionary);
}
Aggregations