Class MapBody
java.lang.Object
com.swiftmq.impl.streams.comp.message.MapBody
Facade to wrap the body of a javax.jms.MapMessage
- Author:
- IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
-
Method Details
-
names
Returns an array of names (keys) of the map.- Returns:
- array of names
- Throws:
JMSException
-
get
Get a map value.- Parameters:
name
- key- Returns:
- value
-
set
Sets a map value.- Parameters:
name
- keyvalue
- value- Returns:
- MapBody
- Throws:
JMSException
-
toJson
Converts this body into a Json- Returns:
- json
- Throws:
Exception
-
message
Returns a reference to the message.- Returns:
- MapMessage
-
clear
Clears the body.- Returns:
- MapBody
- Throws:
JMSException
-