Class AbstractMessageBuilder
Inheritance
System.Object
AbstractMessageBuilder
Assembly: Steeltoe.Integration.IntegrationBase.dll
Syntax
public abstract class AbstractMessageBuilder : object, IMessageBuilder
Constructors
|
Edit this page
View Source
AbstractMessageBuilder()
Declaration
protected AbstractMessageBuilder()
|
Edit this page
View Source
AbstractMessageBuilder(Object, IMessage)
Declaration
protected AbstractMessageBuilder(object payload, IMessage originalMessage)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessage |
originalMessage |
|
Fields
|
Edit this page
View Source
Declaration
protected readonly IntegrationMessageHeaderAccessor _headerAccessor
Field Value
|
Edit this page
View Source
_modified
Declaration
protected volatile bool _modified
Field Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
_originalMessage
Declaration
protected readonly IMessage _originalMessage
Field Value
Type |
Description |
IMessage |
|
|
Edit this page
View Source
_payload
Declaration
protected readonly object _payload
Field Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Declaration
protected IList<string> _readOnlyHeaders
Field Value
Type |
Description |
IList<System.String> |
|
Properties
|
Edit this page
View Source
CorrelationId
Declaration
protected abstract object CorrelationId { get; }
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Declaration
public abstract IDictionary<string, object> Headers { get; }
Property Value
Type |
Description |
IDictionary<System.String, System.Object> |
|
|
Edit this page
View Source
Payload
Declaration
public abstract object Payload { get; }
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
SequenceDetails
Declaration
protected abstract List<List<object>> SequenceDetails { get; }
Property Value
Type |
Description |
List<List<System.Object>> |
|
|
Edit this page
View Source
SequenceNumber
Declaration
protected abstract object SequenceNumber { get; }
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
SequenceSize
Declaration
protected abstract object SequenceSize { get; }
Property Value
Type |
Description |
System.Object |
|
Methods
|
Edit this page
View Source
Build()
Declaration
public abstract IMessage Build()
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
Declaration
protected bool ContainsReadOnly(IMessageHeaders headers)
Parameters
Type |
Name |
Description |
IMessageHeaders |
headers |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public abstract IMessageBuilder CopyHeaders(IDictionary<string, object> headersToCopy)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headersToCopy |
|
Returns
|
Edit this page
View Source
Declaration
public abstract IMessageBuilder CopyHeadersIfAbsent(IDictionary<string, object> headersToCopy)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headersToCopy |
|
Returns
|
Edit this page
View Source
FilterAndCopyHeadersIfAbsent(IDictionary<String, Object>, String[])
Declaration
public virtual IMessageBuilder FilterAndCopyHeadersIfAbsent(IDictionary<string, object> headersToCopy, params string[] headerPatternsToFilter)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headersToCopy |
|
System.String[] |
headerPatternsToFilter |
|
Returns
|
Edit this page
View Source
PopSequenceDetails()
Declaration
public virtual IMessageBuilder PopSequenceDetails()
Returns
|
Edit this page
View Source
PushSequenceDetails(Object, Int32, Int32)
Declaration
public virtual IMessageBuilder PushSequenceDetails(object correlationId, int sequenceNumber, int sequenceSize)
Parameters
Type |
Name |
Description |
System.Object |
correlationId |
|
System.Int32 |
sequenceNumber |
|
System.Int32 |
sequenceSize |
|
Returns
|
Edit this page
View Source
Declaration
public abstract IMessageBuilder RemoveHeader(string headerName)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
Returns
|
Edit this page
View Source
Declaration
public abstract IMessageBuilder RemoveHeaders(params string[] headerPatterns)
Parameters
Type |
Name |
Description |
System.String[] |
headerPatterns |
|
Returns
|
Edit this page
View Source
SetCorrelationId(Object)
Declaration
public virtual IMessageBuilder SetCorrelationId(object correlationId)
Parameters
Type |
Name |
Description |
System.Object |
correlationId |
|
Returns
|
Edit this page
View Source
SetErrorChannel(IMessageChannel)
Declaration
public virtual IMessageBuilder SetErrorChannel(IMessageChannel errorChannel)
Parameters
Type |
Name |
Description |
IMessageChannel |
errorChannel |
|
Returns
|
Edit this page
View Source
SetErrorChannelName(String)
Declaration
public virtual IMessageBuilder SetErrorChannelName(string errorChannelName)
Parameters
Type |
Name |
Description |
System.String |
errorChannelName |
|
Returns
|
Edit this page
View Source
SetExpirationDate(Int64)
Declaration
public virtual IMessageBuilder SetExpirationDate(long expirationDate)
Parameters
Type |
Name |
Description |
System.Int64 |
expirationDate |
|
Returns
|
Edit this page
View Source
SetExpirationDate(Nullable<DateTime>)
Declaration
public virtual IMessageBuilder SetExpirationDate(DateTime? expirationDate)
Parameters
Type |
Name |
Description |
System.Nullable<DateTime> |
expirationDate |
|
Returns
|
Edit this page
View Source
Declaration
public abstract IMessageBuilder SetHeader(string headerName, object headerValue)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
System.Object |
headerValue |
|
Returns
|
Edit this page
View Source
Declaration
public abstract IMessageBuilder SetHeaderIfAbsent(string headerName, object headerValue)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
System.Object |
headerValue |
|
Returns
|
Edit this page
View Source
SetPriority(Int32)
Declaration
public virtual IMessageBuilder SetPriority(int priority)
Parameters
Type |
Name |
Description |
System.Int32 |
priority |
|
Returns
|
Edit this page
View Source
SetReplyChannel(IMessageChannel)
Declaration
public virtual IMessageBuilder SetReplyChannel(IMessageChannel replyChannel)
Parameters
Type |
Name |
Description |
IMessageChannel |
replyChannel |
|
Returns
|
Edit this page
View Source
SetReplyChannelName(String)
Declaration
public virtual IMessageBuilder SetReplyChannelName(string replyChannelName)
Parameters
Type |
Name |
Description |
System.String |
replyChannelName |
|
Returns
|
Edit this page
View Source
SetSequenceNumber(Int32)
Declaration
public virtual IMessageBuilder SetSequenceNumber(int sequenceNumber)
Parameters
Type |
Name |
Description |
System.Int32 |
sequenceNumber |
|
Returns
|
Edit this page
View Source
SetSequenceSize(Int32)
Declaration
public virtual IMessageBuilder SetSequenceSize(int sequenceSize)
Parameters
Type |
Name |
Description |
System.Int32 |
sequenceSize |
|
Returns
Implements