Class CoreMapMessageWrapper
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
-
- org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMapMessageWrapper
-
public final class CoreMapMessageWrapper extends CoreMessageWrapper
-
-
Field Summary
Fields Modifier and Type Field Description static byteTYPE-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
message
-
-
Constructor Summary
Constructors Constructor Description CoreMapMessageWrapper(ICoreMessage message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()org.apache.qpid.proton.amqp.messaging.SectioncreateAMQPSection(Map<org.apache.qpid.proton.amqp.Symbol,Object> maMap, org.apache.qpid.proton.amqp.messaging.Properties properties)voiddecode()voidencode()Encode the body into the internal messagebooleangetBoolean(String name)bytegetByte(String name)byte[]getBytes(String name)chargetChar(String name)doublegetDouble(String name)floatgetFloat(String name)intgetInt(String name)longgetLong(String name)EnumerationgetMapNames()ObjectgetObject(String name)shortgetShort(String name)StringgetString(String name)booleanitemExists(String name)voidsetBoolean(String name, boolean value)voidsetByte(String name, byte value)voidsetBytes(String name, byte[] value)voidsetBytes(String name, byte[] value, int offset, int length)voidsetChar(String name, char value)voidsetDouble(String name, double value)voidsetFloat(String name, float value)voidsetInt(String name, int value)voidsetLong(String name, long value)voidsetObject(String name, Object value)voidsetShort(String name, short value)voidsetString(String name, String value)-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.converter.coreWrapper.CoreMessageWrapper
clearProperties, getBooleanProperty, getByteProperty, getDestination, getDoubleProperty, getExpiration, getFloatProperty, getInnerMessage, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSMessageID, getJMSPriority, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getOrignalEncoding, getPropertyNames, getReadBodyBuffer, getShortProperty, getStringProperty, getWriteBodyBuffer, propertyExists, setBooleanProperty, setByteProperty, setDeliveryMode, setDestination, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, wrap
-
-
-
-
Field Detail
-
TYPE
public static final byte TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CoreMapMessageWrapper
public CoreMapMessageWrapper(ICoreMessage message)
-
-
Method Detail
-
createAMQPSection
public org.apache.qpid.proton.amqp.messaging.Section createAMQPSection(Map<org.apache.qpid.proton.amqp.Symbol,Object> maMap, org.apache.qpid.proton.amqp.messaging.Properties properties)
- Overrides:
createAMQPSectionin classCoreMessageWrapper
-
setBoolean
public void setBoolean(String name, boolean value)
-
setByte
public void setByte(String name, byte value)
-
setShort
public void setShort(String name, short value)
-
setChar
public void setChar(String name, char value)
-
setInt
public void setInt(String name, int value)
-
setLong
public void setLong(String name, long value)
-
setFloat
public void setFloat(String name, float value)
-
setDouble
public void setDouble(String name, double value)
-
setBytes
public void setBytes(String name, byte[] value)
-
setBytes
public void setBytes(String name, byte[] value, int offset, int length)
-
setObject
public void setObject(String name, Object value) throws ActiveMQPropertyConversionException
-
getBoolean
public boolean getBoolean(String name) throws ActiveMQPropertyConversionException
-
getByte
public byte getByte(String name) throws ActiveMQPropertyConversionException
-
getShort
public short getShort(String name) throws ActiveMQPropertyConversionException
-
getChar
public char getChar(String name) throws ActiveMQPropertyConversionException
-
getInt
public int getInt(String name) throws ActiveMQPropertyConversionException
-
getLong
public long getLong(String name) throws ActiveMQPropertyConversionException
-
getFloat
public float getFloat(String name) throws ActiveMQPropertyConversionException
-
getDouble
public double getDouble(String name) throws ActiveMQPropertyConversionException
-
getString
public String getString(String name) throws ActiveMQPropertyConversionException
-
getBytes
public byte[] getBytes(String name) throws ActiveMQPropertyConversionException
-
getMapNames
public Enumeration getMapNames()
-
itemExists
public boolean itemExists(String name)
-
clearBody
public void clearBody()
- Overrides:
clearBodyin classCoreMessageWrapper
-
encode
public void encode()
Description copied from class:CoreMessageWrapperEncode the body into the internal message- Overrides:
encodein classCoreMessageWrapper
-
decode
public void decode()
- Overrides:
decodein classCoreMessageWrapper
-
-