Inheritance
System.Object
AbstractHeaderMapper<T>
Assembly: Steeltoe.Integration.IntegrationBase.dll
public abstract class AbstractHeaderMapper<T> : object, IRequestReplyHeaderMapper<T>
Type Parameters
Constructors
|
Edit this page
View Source
Declaration
protected AbstractHeaderMapper(string standardHeaderPrefix, List<string> requestHeaderNames, List<string> replyHeaderNames, ILogger logger)
Parameters
Type |
Name |
Description |
System.String |
standardHeaderPrefix |
|
List<System.String> |
requestHeaderNames |
|
List<System.String> |
replyHeaderNames |
|
ILogger |
logger |
|
Fields
|
Edit this page
View Source
NON_STANDARD_HEADER_NAME_PATTERN
Declaration
public const string NON_STANDARD_HEADER_NAME_PATTERN = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
STANDARD_REPLY_HEADER_NAME_PATTERN
Declaration
public const string STANDARD_REPLY_HEADER_NAME_PATTERN = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
STANDARD_REQUEST_HEADER_NAME_PATTERN
Declaration
public const string STANDARD_REQUEST_HEADER_NAME_PATTERN = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
Declaration
public AbstractHeaderMapper<T>.IHeaderMatcher ReplyHeaderMatcher { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public List<string> ReplyHeaderNames { get; set; }
Property Value
Type |
Description |
List<System.String> |
|
|
Edit this page
View Source
Declaration
public AbstractHeaderMapper<T>.IHeaderMatcher RequestHeaderMatcher { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public List<string> RequestHeaderNames { get; set; }
Property Value
Type |
Description |
List<System.String> |
|
|
Edit this page
View Source
StandardHeaderPrefix
Declaration
public string StandardHeaderPrefix { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
Declaration
protected virtual AbstractHeaderMapper<T>.IHeaderMatcher CreateDefaultHeaderMatcher(string standardHeaderPrefix, List<string> headerNames)
Parameters
Type |
Name |
Description |
System.String |
standardHeaderPrefix |
|
List<System.String> |
headerNames |
|
Returns
|
Edit this page
View Source
Declaration
protected virtual AbstractHeaderMapper<T>.IHeaderMatcher CreateHeaderMatcher(string[] patterns)
Parameters
Type |
Name |
Description |
System.String[] |
patterns |
|
Returns
|
Edit this page
View Source
Declaration
protected virtual string CreateTargetPropertyName(string propertyName, bool fromMessageHeaders)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
System.Boolean |
fromMessageHeaders |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
ExtractStandardHeaders(T)
Declaration
protected abstract IDictionary<string, object> ExtractStandardHeaders(T source)
Parameters
Type |
Name |
Description |
T |
source |
|
Returns
Type |
Description |
IDictionary<System.String, System.Object> |
|
|
Edit this page
View Source
Declaration
protected abstract IDictionary<string, object> ExtractUserDefinedHeaders(T source)
Parameters
Type |
Name |
Description |
T |
source |
|
Returns
Type |
Description |
IDictionary<System.String, System.Object> |
|
|
Edit this page
View Source
Declaration
public void FromHeadersToReply(IMessageHeaders headers, T target)
Parameters
Type |
Name |
Description |
IMessageHeaders |
headers |
|
T |
target |
|
|
Edit this page
View Source
Declaration
public void FromHeadersToRequest(IMessageHeaders headers, T target)
Parameters
Type |
Name |
Description |
IMessageHeaders |
headers |
|
T |
target |
|
|
Edit this page
View Source
Declaration
protected virtual V GetHeaderIfAvailable<V>(IDictionary<string, object> headers, string name, Type type)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headers |
|
System.String |
name |
|
Type |
type |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
protected virtual List<string> GetTransientHeaderNames()
Returns
Type |
Description |
List<System.String> |
|
|
Edit this page
View Source
PopulateStandardHeaders(IDictionary<String, Object>, T)
Declaration
protected abstract void PopulateStandardHeaders(IDictionary<string, object> headers, T target)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headers |
|
T |
target |
|
|
Edit this page
View Source
PopulateStandardHeaders(IDictionary<String, Object>, IDictionary<String, Object>, T)
Declaration
protected virtual void PopulateStandardHeaders(IDictionary<string, object> allHeaders, IDictionary<string, object> subset, T target)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
allHeaders |
|
IDictionary<System.String, System.Object> |
subset |
|
T |
target |
|
|
Edit this page
View Source
Declaration
protected abstract void PopulateUserDefinedHeader(string headerName, object headerValue, T target)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
System.Object |
headerValue |
|
T |
target |
|
|
Edit this page
View Source
Declaration
public void SetReplyHeaderNames(params string[] replyHeaderNames)
Parameters
Type |
Name |
Description |
System.String[] |
replyHeaderNames |
|
|
Edit this page
View Source
Declaration
public void SetRequestHeaderNames(params string[] requestHeaderNames)
Parameters
Type |
Name |
Description |
System.String[] |
requestHeaderNames |
|
|
Edit this page
View Source
Declaration
public IDictionary<string, object> ToHeadersFromReply(T source)
Parameters
Type |
Name |
Description |
T |
source |
|
Returns
Type |
Description |
IDictionary<System.String, System.Object> |
|
|
Edit this page
View Source
Declaration
public IDictionary<string, object> ToHeadersFromRequest(T source)
Parameters
Type |
Name |
Description |
T |
source |
|
Returns
Type |
Description |
IDictionary<System.String, System.Object> |
|
Implements