Package qpid :: Package messaging :: Module message
[hide private]
[frames] | no frames]

Module message

source code

Classes [hide private]
  Message
A message consists of a standard set of fields, an application defined set of properties, and some content.
  Disposition
Functions [hide private]
 
codec(name) source code
 
encode_text_plain(x) source code
 
decode_text_plain(x) source code
 
get_type(content) source code
 
get_codec(content_type) source code
Variables [hide private]
  TYPE_MAPPINGS = {<type 'buffer'>: None, <type 'list'>: 'amqp/l...
  DEFAULT_CODEC = lambda x: x, lambda x: x
  TYPE_CODEC = {"amqp/map": codec("map"), "amqp/list": codec("li...
  UNSPECIFIED = UNSPECIFIED
  __package__ = 'qpid.messaging'
Variables Details [hide private]

TYPE_MAPPINGS

Value:
{<type 'buffer'>: None,
 <type 'list'>: 'amqp/list',
 <type 'dict'>: 'amqp/map',
 <type 'NoneType'>: None,
 <type 'str'>: None,
 <type 'unicode'>: 'text/plain'}

TYPE_CODEC

Value:
{"amqp/map": codec("map"), "amqp/list": codec("list"), "text/plain; ch\
arset=utf8":(encode_text_plain, decode_text_plain), "text/plain":(enco\
de_text_plain, decode_text_plain), "": DEFAULT_CODEC, None: DEFAULT_CO\
DEC}