This topic describes Java methods that are available for messages of the type com.stc.connectors.jms.Message, and can be accessed from:
Input messages for the receive web service operation.
Output messages for the receiveWait web service operation.
The following Java methods are available for messages of the type com.stc.connectors.jms.receiveWaitMessage, and can be accessed from the receiveWait web service operation.
Counts the number of keys in the map message.
None.
Returns |
Type |
---|---|
The number of keys in the map message. |
|
None.
Counts the number of items in the map message.
None.
Returns |
Type |
---|---|
The number of items in the stream message. |
|
None.
Counts the number of user properties.
None.
Returns |
Type |
---|---|
The number of user properties. |
|
None.
Gets the data bytes in the message.
None.
Returns |
Type |
---|---|
A byte array representing the data in the message. |
|
None.
Gets the JMS message type.
None.
Returns |
Type |
---|---|
The JMS message type, for example, Bytes, Text, Stream, Map. |
java.lang.String |
None.
Gets the name-value pair array containing the map message.
None.
Returns |
Type |
---|---|
The NameValuePair array containing the map message. |
com.stc.connectors.jms.NameValuePair |
None.
Gets the name-value pair containing the map message from the location in the map list specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
|
The location of the name-value pair in the map message list. |
Returns |
Type |
---|---|
The NameValuePair object at the specified location. |
com.stc.connectors.jms.NameValuePair |
None.
Gets the message property object to query for the various JMS message properties.
None.
Returns |
Type |
---|---|
The MessageProperty object to query for the various JMS message properties. |
com.stc.connectors.jms.MessageProperty |
None.
Gets the array of stream message objects.
None.
Returns |
Type |
---|---|
An array of stream message objects. |
java.lang.Object |
None.
Gets the stream message object from the location specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
|
The location of the stream message in the list. |
Returns |
Type |
---|---|
The StreamMessage object at the specified location. |
java.lang.Object |
None.
Gets the data string in the message.
None.
Returns |
Type |
---|---|
The data string in the message. |
java.lang.String |
None.
Gets the name-value pair array of the user properties in the message.
None.
Returns |
Type |
---|---|
The NameValuePair array of the user properties in the message. |
com.stc.connectors.jms.NameValuePair |
None.
Gets the name-value pair representing user properties from the location specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
|
Location of the user property in the list. |
Returns |
Type |
---|---|
The NameValuePair object from the specified location. |
com.stc.connectors.jms.NameValuePair |
None.
Returns the byte array corresponding to the payload of the message object.
None.
Returns |
Type |
---|---|
The byte array corresponding to the payload of the message object. |
|
Throws JMSException if conversion is not possible, for example, if the method cannot convert from a map message to a byte array.
Returns the byte array corresponding to the message payload, with the encoding as specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The encoding to use when converting to a byte array. |
Returns |
Type |
---|---|
The byte array corresponding to the message payload, with the specified encoding. |
|
Throws JMSException if conversion is not possible, for example, if the method cannot convert from a map message to a byte array.
Throws UnsupportedEnclodingException if the name charset is not supported.
Returns the value of the message specified by arg0, or null if the message does not exist.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The name of the map message. |
Returns |
Type |
---|---|
The value of the specified message, or null if the message does not exist. |
java.lang.Object |
None.
Returns a map message list object, which contains map message objects as an array of name-value pairs.
None.
Returns |
Type |
---|---|
A MapMessageList object, which contains map message objects as name-value pairs. |
com.stc.connectors.jms.MapMessageList |
None.
Returns a string representation of the message payload.
None.
Returns |
Type |
---|---|
A string corresponding to the message payload. |
java.lang.String |
Throws JMSException if conversion is not possible, for example, if the method cannot convert from a map message to a String.
Returns a string representation of the message payload, with the encoding as specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The encoding to use when converting to a string object. |
Returns |
Type |
---|---|
The string corresponding to the message payload, with the specified encoding. |
java.lang.String |
Throws JMSException if conversion is not possible.
Returns the value of the user-defined string property specified by arg0, or null if the property does not exist.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The name of the user property. |
Returns |
Type |
---|---|
The value of the specified user property, or null if the property does not exist. |
java.lang.String |
None.
Returns the user property list.
None.
Returns |
Type |
---|---|
A UserPropertyList object, which contains user properties as name-value pairs. |
com.stc.connectors.jms.UserPropertyList |
None.
Sets the bytes message to the value specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
|
The byte array containing the message. |
None.
None.
Sets the text message type to the value specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The value to which to set the JMS message type, for example, Bytes, Text, Stream, Map. |
None.
None.
Sets the stream message specified by arg0 to the value specified by arg1.
Name |
Type |
Description |
---|---|---|
arg0 |
|
The index of the stream message to be set. |
arg1 |
java.lang.Object |
The value to which to set the stream message. |
None.
None.
Sets the text message to the value specified by arg0.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The value to which to set the text message. |
None.
None.
Writes the name and value of a map message to the map message object, where arg0 specifies the name and arg1 specifies the value of the map message.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The name of the map message. |
arg1 |
java.lang.Object |
The value of the map message. |
None.
None.
Writes the name and value of a user property to the user property object, where arg0 specifies the name and arg1 specifies the value of the user property.
Name |
Type |
Description |
---|---|---|
arg0 |
java.lang.String |
The name of the user property. |
arg1 |
java.lang.String |
The value of the user property. |
None.
None.
Gets and returns the timeout period during which the operation blocks program execution, while waiting for a message to arrive.
None.
Returns |
Type |
---|---|
The time to wait for a message, in milliseconds. |
|
None.
Sets the timeout period during which the operation blocks program execution, while waiting for a message to arrive.
Name |
Type |
Description |
---|---|---|
arg0 |
|
The time, in milliseconds, for the operation to block program execution. |
None.
None.