Search in sources :

Example 1 with FieldConvertError

use of quickfix.FieldConvertError in project camel by apache.

the class QuickfixjEngine method isConnectorRole.

private boolean isConnectorRole(SessionSettings settings, String connectorRole) throws ConfigError {
    boolean hasRole = false;
    Iterator<SessionID> sessionIdItr = settings.sectionIterator();
    while (sessionIdItr.hasNext()) {
        try {
            if (connectorRole.equals(settings.getString(sessionIdItr.next(), SessionFactory.SETTING_CONNECTION_TYPE))) {
                hasRole = true;
                break;
            }
        } catch (FieldConvertError e) {
            throw new ConfigError(e);
        }
    }
    return hasRole;
}
Also used : ConfigError(quickfix.ConfigError) FieldConvertError(quickfix.FieldConvertError) SessionID(quickfix.SessionID)

Aggregations

ConfigError (quickfix.ConfigError)1 FieldConvertError (quickfix.FieldConvertError)1 SessionID (quickfix.SessionID)1