Package org.jboss.soa.esb.message.mapping

Examples of org.jboss.soa.esb.message.mapping.ObjectMapper


  public Message process(Message message) throws ActionProcessingException {
      if (list != null) {
          for (int i = 0; i<list.size(); i++) {
              MonitoringPatternBean mpb = list.get(i);
              String object = null;
              ObjectMapper mapper = new ObjectMapper();
              try {
      object = (String) mapper.getObjectFromMessage(message, mpb.getPattern());
      Interpreter inter = new Interpreter();
      inter.eval(BEANSHELL_VARIABLE + " = " + object + mpb.getConditional());
      Boolean b = (Boolean)inter.get(BEANSHELL_VARIABLE);
      if (b.booleanValue()) {
          mvelMonitor.addEvent(message, mpb);
View Full Code Here


      replaced = replaceArgument(current, message);
    }
   
    // See if the filename is an object in the message - if it is a
    // String in the message, then we can use that value
    ObjectMapper om = new ObjectMapper();
    if (!foundReplacement) {
      try {
        Object obj = om.getObjectFromMessage(message, field);
        if (obj != null) {
          if (obj instanceof String) {
            replaced = (String) obj;
          } else if (obj instanceof URI) {
            replaced = obj.toString();
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.message.mapping.ObjectMapper

Copyright © 2018 www.massapicom. 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.