Examples of fieldValueToObject()


Examples of org.fudgemsg.mapping.FudgeDeserializer.fieldValueToObject()

    final Integer ttl = request.getInt(TTL_FIELD);
    final List<FudgeField> fields = request.getAllByName(RULE_FIELD);
    if (fields.size() > 1) {
      final Collection<FunctionBlacklistRule> rules = new ArrayList<FunctionBlacklistRule>(fields.size());
      for (FudgeField field : fields) {
        rules.add(fdc.fieldValueToObject(FunctionBlacklistRule.class, field));
      }
      if (ttl != null) {
        getUnderlying().addBlacklistRules(rules, ttl);
      } else {
        getUnderlying().addBlacklistRules(rules);
View Full Code Here

Examples of org.fudgemsg.mapping.FudgeDeserializer.fieldValueToObject()

        getUnderlying().addBlacklistRules(rules, ttl);
      } else {
        getUnderlying().addBlacklistRules(rules);
      }
    } else if (!fields.isEmpty()) {
      final FunctionBlacklistRule rule = fdc.fieldValueToObject(FunctionBlacklistRule.class, fields.get(0));
      if (ttl != null) {
        getUnderlying().addBlacklistRule(rule, ttl);
      } else {
        getUnderlying().addBlacklistRule(rule);
      }
View Full Code Here

Examples of org.fudgemsg.mapping.FudgeDeserializer.fieldValueToObject()

    final FudgeDeserializer fdc = new FudgeDeserializer(getFudgeContext());
    final List<FudgeField> fields = request.getAllByName(RULE_FIELD);
    if (fields.size() > 1) {
      final Collection<FunctionBlacklistRule> rules = new ArrayList<FunctionBlacklistRule>(fields.size());
      for (FudgeField field : fields) {
        rules.add(fdc.fieldValueToObject(FunctionBlacklistRule.class, field));
      }
      getUnderlying().removeBlacklistRules(rules);
    } else if (!fields.isEmpty()) {
      final FunctionBlacklistRule rule = fdc.fieldValueToObject(FunctionBlacklistRule.class, fields.get(0));
      getUnderlying().removeBlacklistRule(rule);
View Full Code Here

Examples of org.fudgemsg.mapping.FudgeDeserializer.fieldValueToObject()

      for (FudgeField field : fields) {
        rules.add(fdc.fieldValueToObject(FunctionBlacklistRule.class, field));
      }
      getUnderlying().removeBlacklistRules(rules);
    } else if (!fields.isEmpty()) {
      final FunctionBlacklistRule rule = fdc.fieldValueToObject(FunctionBlacklistRule.class, fields.get(0));
      getUnderlying().removeBlacklistRule(rule);
    }
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.