QueueMessageFormat Class
Encoding and decoding methods which can be used to modify how the queue service encodes and decodes queue messages. Set these to queueservice.encode_function and queueservice.decode_function to modify the behavior. The defaults are text_xmlencode and text_xmldecode, respectively.
- Inheritance
-
builtins.objectQueueMessageFormat
Constructor
QueueMessageFormat()
Methods
binary_base64decode |
Base64 decode to byte string. |
binary_base64encode |
Base64 encode byte strings. |
nodecode |
Do no decoding. |
noencode |
Do no encoding. |
text_base64decode |
Base64 decode to unicode text. |
text_base64encode |
Base64 encode unicode text. |
text_xmldecode |
XML decode to unicode text. |
text_xmlencode |
XML encode unicode text. |
binary_base64decode
Base64 decode to byte string.
static binary_base64decode(data)
Parameters
Name | Description |
---|---|
data
Required
|
Data to decode to a byte string. |
Returns
Type | Description |
---|---|
Base64 decoded data. |
binary_base64encode
Base64 encode byte strings.
static binary_base64encode(data)
Parameters
Name | Description |
---|---|
data
Required
|
Binary string to encode. |
Returns
Type | Description |
---|---|
Base64 encoded data. |
nodecode
Do no decoding.
static nodecode(data)
Parameters
Name | Description |
---|---|
data
Required
|
Data. |
Returns
Type | Description |
---|---|
The data passed in is returned unmodified. |
noencode
Do no encoding.
static noencode(data)
Parameters
Name | Description |
---|---|
data
Required
|
Data. |
Returns
Type | Description |
---|---|
The data passed in is returned unmodified. |
text_base64decode
Base64 decode to unicode text.
static text_base64decode(data)
Parameters
Name | Description |
---|---|
data
Required
|
String data to decode to unicode. |
Returns
Type | Description |
---|---|
Base64 decoded string. |
text_base64encode
Base64 encode unicode text.
static text_base64encode(data)
Parameters
Name | Description |
---|---|
data
Required
|
String to encode. |
Returns
Type | Description |
---|---|
Base64 encoded string. |
text_xmldecode
XML decode to unicode text.
static text_xmldecode(data)
Parameters
Name | Description |
---|---|
data
Required
|
Data to decode to unicode. |
Returns
Type | Description |
---|---|
XML decoded data. |
text_xmlencode
Azure SDK for Python