public final class ImmutableJmsProperties extends Object implements JmsProperties
| Constructor and Description |
|---|
ImmutableJmsProperties(javax.jms.Message message) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanProperty(String name)
Returns the value of the
boolean property with the specified name. |
byte |
getByteProperty(String name)
Returns the value of the
byte property with the specified name. |
double |
getDoubleProperty(String name)
Returns the value of the
double property with the specified name. |
float |
getFloatProperty(String name)
Returns the value of the
float property with the specified name. |
int |
getIntProperty(String name)
Returns the value of the
int property with the specified name. |
long |
getLongProperty(String name)
Returns the value of the
long property with the specified name. |
Object |
getObjectProperty(String name)
Returns the value of the Java object property with the specified name.
|
Enumeration<String> |
getPropertyNames()
Returns an
Enumeration of all the property names. |
short |
getShortProperty(String name)
Returns the value of the
short property with the specified name. |
String |
getStringProperty(String name)
Returns the value of the
String property with the specified name. |
boolean |
propertyExists(String name)
Indicates whether a property value exists.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilderpublic boolean propertyExists(String name)
JmsPropertiespropertyExists in interface JmsPropertiesname - the name of the property to testpublic boolean getBooleanProperty(String name)
JmsPropertiesboolean property with the specified name.getBooleanProperty in interface JmsPropertiesname - the name of the boolean propertyboolean property value for the specified namepublic byte getByteProperty(String name)
JmsPropertiesbyte property with the specified name.getByteProperty in interface JmsPropertiesname - the name of the byte propertybyte property value for the specified namepublic short getShortProperty(String name)
JmsPropertiesshort property with the specified name.getShortProperty in interface JmsPropertiesname - the name of the short propertyshort property value for the specified namepublic int getIntProperty(String name)
JmsPropertiesint property with the specified name.getIntProperty in interface JmsPropertiesname - the name of the int propertyint property value for the specified namepublic long getLongProperty(String name)
JmsPropertieslong property with the specified name.getLongProperty in interface JmsPropertiesname - the name of the long propertylong property value for the specified namepublic float getFloatProperty(String name)
JmsPropertiesfloat property with the specified name.getFloatProperty in interface JmsPropertiesname - the name of the float propertyfloat property value for the specified namepublic double getDoubleProperty(String name)
JmsPropertiesdouble property with the specified name.getDoubleProperty in interface JmsPropertiesname - the name of the double propertydouble property value for the specified namepublic String getStringProperty(String name)
JmsPropertiesString property with the specified name.getStringProperty in interface JmsPropertiesname - the name of the String propertyString property value for the specified name; if there is no property by this name, a null value
is returnedpublic Object getObjectProperty(String name)
JmsProperties
This method can be used to return, in objectified format, an object that has been stored as a property in the message
with the equivalent setObjectProperty method call, or its equivalent primitive
settypeProperty method.
getObjectProperty in interface JmsPropertiesname - the name of the Java object propertyint, an Integer is returned); if there is no property by this name, a null value is
returnedpublic Enumeration<String> getPropertyNames()
JmsPropertiesEnumeration of all the property names.
Note that Jakarta Messaging standard header fields are not considered properties and are not returned in this enumeration.
getPropertyNames in interface JmsPropertiesCopyright © 2018–2021 SmallRye. All rights reserved.