public class MapCarbonMessage extends CarbonMessage
CarbonMessage type for Map message. This message type is better if you are dealing with
map types of messages.CarbonMessage.ByteBufferInputStream, CarbonMessage.ByteBufferOutputStreamalreadyRead, bufferContent, byteBufferInputStream, faultHandlerStack, headers, lock, messageBody, messageDataSource, messagingException, nelException, properties| Constructor and Description |
|---|
MapCarbonMessage()
Initializes a Map Carbon Message.
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration<String> |
getMapNames()
Return all the keys in the
MapCarbonMessage object. |
String |
getValue(String mapKeyName)
To get the value of a particular key.
|
void |
setValue(String mapKeyName,
String mapValue)
To set a value in the map.
|
addMessageBody, getCopyOfFullMessageBody, getFaultHandlerStack, getFullMessageBody, getFullMessageLength, getHeader, getHeaders, getInputStream, getLock, getMessageBody, getMessageDataSource, getMessagingException, getNelException, getOutputStream, getProperties, getProperty, getWriter, isAlreadyRead, isBufferContent, isEmpty, isEndOfMsgAdded, isFaulty, release, removeHeader, removeProperty, setAlreadyRead, setBufferContent, setEndOfMsgAdded, setFaultHandlerStack, setHeader, setHeaders, setHeaders, setMessageDataSource, setMessagingException, setNelException, setProperty, setWriterpublic void setValue(String mapKeyName, String mapValue)
mapKeyName - Key that need to be added to mapmapValue - Value of the key that need to be added to mappublic String getValue(String mapKeyName)
mapKeyName - Key to get the value forpublic Enumeration<String> getMapNames()
MapCarbonMessage object.MapCarbonMessageCopyright © 2017 WSO2. All rights reserved.