ConnectionMessage Class
Definition
ConnectionMessage represents implementation specific messages sent to and received from the speech service. These messages are provided for debugging purposes and should not be used for production use cases with the Azure Cognitive Services Speech Service. Messages sent to and received from the Speech Service are subject to change without notice. This includes message contents, headers, payloads, ordering, etc. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.15.0.
public class ConnectionMessage
- Inheritance
-
java.lang.ObjectAutoCloseableConnectionMessage
Methods
| close() |
Explicitly frees any external resource attached to the object. Note: close() must be called in order to release underlying resources held by the object. |
| getBinaryMessage() |
Gets the binary message payload. |
| getPath() |
The message Path |
| getProperties() |
A collection of properties and their values defined for this ConnectionMessage. Message headers can be accessed via this collection (e.g. "Content-Type"). |
| getTextMessage() |
Gets the text message payload. Typically the text message content-type is application/json. To determine other content-types use Properties.GetProperty("Content-Type"). |
| isBinaryMessage() |
Checks to see if the ConnectionMessage is a binary message. See also GetBinaryMessage(). |
| isTextMessage() |
Checks to see if the ConnectionMessage is a text message. See also IsBinaryMessage(). |
| toString() |
Returns a string that represents the connection message. |