Package org.jboss.soa.esb.message.body.content

Examples of org.jboss.soa.esb.message.body.content.MapBody


  {
    Message msg = MessageFactory.getInstance().getMessage();

    assertEquals((msg != null), true);

    MapBody mapMessage = Payload.createMapBody(msg);

    assertEquals(msg.getBody() instanceof MapBody, true);
   
    mapMessage.setString("foo", "bar");
    mapMessage.setBoolean("hello", true);

    Enumeration<String> names = mapMessage.getMapNames();

    assertNotNull(names);

    assertEquals(mapMessage.getString("foo"), "bar");
    assertEquals(mapMessage.getBoolean("hello"), true);
  }
View Full Code Here


    Hashtable<String, Serializable> initial = new Hashtable<String, Serializable>();
   
    initial.put("foo", "bar");
   
    Message msg = _factory.createMapMessage(initial);
    MapBody body = (MapBody) msg.getBody();
   
    assertEquals(body.getString("foo"), "bar");
  }
View Full Code Here

    Hashtable<String, Serializable> initial = new Hashtable<String, Serializable>();
   
    initial.put("foo", "bar");
   
    Message msg = _factory.createMapMessage(initial);
    MapBody body = (MapBody) msg.getBody();
   
    assertEquals(body.getString("foo"), "bar");
  }
View Full Code Here

   
    Message msg = MessageFactory.getInstance().getMessage(_type);
   
    try
    {
      MapBody payload = (MapBody) MessageFactory.getInstance().createBodyType(msg, Payload.MAP_BODY);
     
      payload.setMap(initial);
     
      return msg;
    }
    catch (Exception ex)
    {
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.message.body.content.MapBody

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.