public class AmqpJmsMessagePropertyIntercepter extends Object
Constructor and Description |
---|
AmqpJmsMessagePropertyIntercepter() |
Modifier and Type | Method and Description |
---|---|
static void |
clearProperties(AmqpJmsMessageFacade message)
For each of the currently configured message property intercepter instances clear or
reset the value to its default.
|
static Set<String> |
getAllPropertyNames()
For each of the currently configured message property intercepter instance a
string key value is inserted into an Set and returned.
|
static Object |
getProperty(AmqpJmsMessageFacade message,
String name)
Static get method that takes a property name and gets the value either via
a registered property get object or through the AmqpJmsMessageFacade getProperty
method.
|
static Set<String> |
getPropertyNames(AmqpJmsMessageFacade message)
For each of the currently configured message property intercepter instance a
string key value is inserted into an Set and returned if the property has a
value and is available for a read operation.
|
static boolean |
propertyExists(AmqpJmsMessageFacade message,
String name)
Static query method to determine if a specific property exists in the given message.
|
static void |
setProperty(AmqpJmsMessageFacade message,
String name,
Object value)
Static set method that takes a property name and sets the value either via
a registered property set object or through the AmqpJmsMessageFacade setProperty
method.
|
public static Object getProperty(AmqpJmsMessageFacade message, String name) throws javax.jms.JMSException
message
- the AmqpJmsMessageFacade instance to read fromname
- the property name that is being requested.javax.jms.JMSException
- if an error occurs while reading the defined property.public static void setProperty(AmqpJmsMessageFacade message, String name, Object value) throws javax.jms.JMSException
message
- the AmqpJmsMessageFacade instance to write to.name
- the property name that is being written.value
- the new value to assign for the named property.javax.jms.JMSException
- if an error occurs while writing the defined property.public static boolean propertyExists(AmqpJmsMessageFacade message, String name) throws javax.jms.JMSException
message
- the AmqpJmsMessageFacade instance to write to.name
- the property name that is being checked.javax.jms.JMSException
- if an error occurs while inspecting the defined property.public static Set<String> getAllPropertyNames()
Set<String>
containing the names of all intercepted properties.public static Set<String> getPropertyNames(AmqpJmsMessageFacade message)
message
- The message being enumerated.Set<String>
containing the names of all intercepted properties with a value.public static void clearProperties(AmqpJmsMessageFacade message) throws javax.jms.JMSException
message
- the AmqpJmsMessageFacade instance to read fromjavax.jms.JMSException
- if an error occurs while validating the defined property.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.