Inheritance
System.Object
MessageHeaderAccessor
Assembly: Steeltoe.Messaging.MessagingBase.dll
public class MessageHeaderAccessor : object, IMessageHeaderAccessor
Constructors
|
Edit this page
View Source
Declaration
public MessageHeaderAccessor()
|
Edit this page
View Source
Declaration
public MessageHeaderAccessor(IMessage message)
Parameters
|
Edit this page
View Source
Declaration
public MessageHeaderAccessor(MessageHeaders headers)
Parameters
Fields
|
Edit this page
View Source
Declaration
public static readonly Encoding DEFAULT_CHARSET
Field Value
Type |
Description |
Encoding |
|
|
Edit this page
View Source
Declaration
protected MessageHeaderAccessor.AccessorMessageHeaders headers
Field Value
Properties
|
Edit this page
View Source
Declaration
public virtual string ContentType { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public virtual bool EnableTimestamp { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual object ErrorChannel { get; set; }
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Declaration
public virtual string ErrorChannelName { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public virtual string Id { get; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public virtual IIDGenerator IdGenerator { get; set; }
Property Value
Type |
Description |
IIDGenerator |
|
|
Edit this page
View Source
Declaration
public virtual bool IsModified { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual bool IsMutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual bool LeaveMutable { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual IMessageHeaders MessageHeaders { get; }
Property Value
|
Edit this page
View Source
Declaration
public virtual object ReplyChannel { get; set; }
Property Value
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Declaration
public virtual string ReplyChannelName { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public virtual long? Timestamp { get; }
Property Value
Type |
Description |
System.Nullable<System.Int64> |
|
Methods
|
Edit this page
View Source
Declaration
public virtual void CopyHeaders(IDictionary<string, object> headersToCopy)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headersToCopy |
|
|
Edit this page
View Source
Declaration
public virtual void CopyHeadersIfAbsent(IDictionary<string, object> headersToCopy)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headersToCopy |
|
|
Edit this page
View Source
Declaration
protected virtual MessageHeaderAccessor CreateMutableAccessor(IMessage message)
Parameters
Returns
|
Edit this page
View Source
Declaration
protected virtual MessageHeaderAccessor CreateMutableAccessor(IMessageHeaders messageHeaders)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static MessageHeaderAccessor GetAccessor(IMessage message, Type accessorType)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Type |
accessorType |
|
Returns
|
Edit this page
View Source
Declaration
public static MessageHeaderAccessor GetAccessor(IMessageHeaders messageHeaders, Type accessorType)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static T GetAccessor<T>(IMessage message)
where T : MessageHeaderAccessor
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public static T GetAccessor<T>(IMessageHeaders messageHeaders)
where T : MessageHeaderAccessor
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public virtual string GetDetailedLogMessage(object payload)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
protected virtual string GetDetailedPayloadLogMessage(object payload)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public virtual object GetHeader(string headerName)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
Returns
Type |
Description |
System.Object |
|
|
Edit this page
View Source
Declaration
public static MessageHeaderAccessor GetMutableAccessor(IMessage message, Type accessorType = null)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Type |
accessorType |
|
Returns
|
Edit this page
View Source
Declaration
public static MessageHeaderAccessor GetMutableAccessor(IMessageHeaders headers, Type accessorType = null)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static T GetMutableAccessor<T>(IMessage message)
where T : MessageHeaderAccessor
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public static T GetMutableAccessor<T>(IMessageHeaders messageHeaders)
where T : MessageHeaderAccessor
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public virtual string GetShortLogMessage(object payload)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
protected virtual string GetShortPayloadLogMessage(object payload)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
protected virtual bool IsReadableContentType()
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
protected virtual bool IsReadOnly(string headerName)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual void RemoveHeader(string headerName)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
|
Edit this page
View Source
Declaration
public virtual void RemoveHeaders(params string[] headerPatterns)
Parameters
Type |
Name |
Description |
System.String[] |
headerPatterns |
|
|
Edit this page
View Source
Declaration
public virtual void SetHeader(string name, object value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
|
Edit this page
View Source
Declaration
public virtual void SetHeaderIfAbsent(string name, object value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Object |
value |
|
|
Edit this page
View Source
Declaration
public virtual void SetImmutable()
|
Edit this page
View Source
Declaration
public virtual IDictionary<string, object> ToDictionary()
Returns
Type |
Description |
IDictionary<System.String, System.Object> |
|
|
Edit this page
View Source
Declaration
public virtual IMessageHeaders ToMessageHeaders()
Returns
|
Edit this page
View Source
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
protected virtual void VerifyType(string headerName, object headerValue)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
System.Object |
headerValue |
|
Implements