public class AmqpJmsMapMessageFacade extends AmqpJmsMessageFacade implements JmsMapMessageFacade
connection, message
Constructor and Description |
---|
AmqpJmsMapMessageFacade(AmqpConnection connection)
Create a new facade ready for sending.
|
AmqpJmsMapMessageFacade(AmqpConsumer consumer,
org.apache.qpid.proton.message.Message message)
Creates a new Facade around an incoming AMQP Message for dispatch to the
JMS Consumer instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBody()
Clears the contents of this Message.
|
AmqpJmsMapMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
Object |
get(String key)
Gets the value stored in the Map at the specified key.
|
byte |
getJmsMsgType() |
Enumeration<String> |
getMapNames()
Returns an Enumeration of all the names in the MapMessage object.
|
boolean |
itemExists(String key)
Determines whether an item exists in this Map based message.
|
void |
put(String key,
Object value)
Sets an object value with the specified name into the Map.
|
Object |
remove(String key)
Remove the mapping for this key from the map if present.
|
applicationPropertyExists, clearProperties, copyInto, getAmqpMessage, getAmqpTimeToLiveOverride, getApplicationProperty, getApplicationPropertyNames, getConnection, getContentType, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getReplyToGroupId, getTimestamp, getType, getUserId, getUserIdBytes, hasAmqpTimeToLiveOverride, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setAmqpTimeToLiveOverride, setApplicationProperty, setContentType, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setReplyToGroupId, setTimestamp, setType, setUserId, setUserIdBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearProperties, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytes
public AmqpJmsMapMessageFacade(AmqpConnection connection)
connection
- the AmqpConnection that under which this facade was created.public AmqpJmsMapMessageFacade(AmqpConsumer consumer, org.apache.qpid.proton.message.Message message)
consumer
- the consumer that received this message.message
- the incoming Message instance that is being wrapped.public byte getJmsMsgType()
getJmsMsgType
in class AmqpJmsMessageFacade
public AmqpJmsMapMessageFacade copy()
JmsMessageFacade
copy
in interface JmsMapMessageFacade
copy
in interface JmsMessageFacade
copy
in class AmqpJmsMessageFacade
public Enumeration<String> getMapNames()
JmsMapMessageFacade
getMapNames
in interface JmsMapMessageFacade
public boolean itemExists(String key)
JmsMapMessageFacade
itemExists
in interface JmsMapMessageFacade
key
- The entry key that is being searched for.public Object get(String key)
JmsMapMessageFacade
get
in interface JmsMapMessageFacade
key
- the key to use to access a value in the Map.public void put(String key, Object value)
JmsMapMessageFacade
put
in interface JmsMapMessageFacade
key
- the key to use to store the value into the Map.value
- the new value to store in the element defined by the key.public Object remove(String key)
JmsMapMessageFacade
remove
in interface JmsMapMessageFacade
key
- the key to be removed from the map if present.public void clearBody()
JmsMessageFacade
clearBody
in interface JmsMessageFacade
clearBody
in class AmqpJmsMessageFacade
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.