public class MapMessageBuilder

Summary

Constructs AMQP Basic-class messages binary-compatible with QPid's "MapMessage" wire encoding.

Field Summary

Flags Type Name Summary
public const string MimeType

MIME type associated with QPid MapMessages.

Property Summary

Flags Type Name Summary
public virtual final IDictionary<string,object> Body (rw)

Retrieves the dictionary that will be written into the body of the message.

Constructor Summary

Flags Name Summary
public MapMessageBuilder(IModel model)

Construct an instance for writing. See .

public MapMessageBuilder(IModel model, int initialAccumulatorSize)

Construct an instance for writing. See .

Method Summary

Flags Name Summary
public virtual byte[] GetContentBody()

Finish and retrieve the content body for transmission.

public virtual string GetDefaultContentType()

Returns the default MIME content type for messages this instance constructs, or null if none is available or relevant.

Field Detail

public const string MimeType

Summary

MIME type associated with QPid MapMessages.

Property Detail

public virtual final IDictionary<string,object> Body (rw)

Summary

Retrieves the dictionary that will be written into the body of the message.

Constructor Detail

MapMessageBuilder

public MapMessageBuilder(IModel model)

Parameters
Name Type
model IModel

Summary

Construct an instance for writing. See .

MapMessageBuilder

public MapMessageBuilder(IModel model, int initialAccumulatorSize)

Parameters
Name Type
model IModel
initialAccumulatorSize int

Summary

Construct an instance for writing. See .

Method Detail

GetContentBody

public virtual byte[] GetContentBody()

Flags public virtual
Return type byte[]

Summary

Finish and retrieve the content body for transmission.

Remarks

Calling this message clears Body to null. Subsequent calls will fault.

GetDefaultContentType

public virtual string GetDefaultContentType()

Flags public virtual
Return type string

Summary

Returns the default MIME content type for messages this instance constructs, or null if none is available or relevant.