public abstract class AbstractMessageContentBuilder extends Object implements MessageContentBuilder
| Constructor and Description |
|---|
AbstractMessageContentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(MessageConstructionInterceptor interceptor)
Adds a new interceptor to the message construction process.
|
Message |
buildMessageContent(TestContext context,
String messageType)
Constructs the control message with headers and payload coming from
subclass implementation.
|
protected Map<String,Object> |
buildMessageHeaders(TestContext context) |
protected abstract Object |
buildMessagePayload(TestContext context) |
DataDictionary |
getDataDictionary()
Gets the data dictionary.
|
List<String> |
getHeaderData()
Gets the message header data.
|
List<String> |
getHeaderResources()
Gets the message header resource paths.
|
Map<String,Object> |
getMessageHeaders()
Gets the messageHeaders.
|
List<MessageConstructionInterceptor> |
getMessageInterceptors()
Gets the messageInterceptors.
|
void |
setDataDictionary(DataDictionary dataDictionary)
Sets explicit data dictionary for this message builder.
|
void |
setHeaderData(List<String> headerData)
Sets the message header data.
|
void |
setHeaderResources(List<String> headerResources)
Sets the message header resource paths.
|
void |
setMessageHeaders(Map<String,Object> messageHeaders)
Sets the message headers for this control message.
|
void |
setMessageInterceptors(List<MessageConstructionInterceptor> messageInterceptors)
Sets the messageInterceptors.
|
public Message buildMessageContent(TestContext context, String messageType)
buildMessageContent in interface MessageContentBuildercontext - the current test context.messageType - the message type to build.protected abstract Object buildMessagePayload(TestContext context)
protected Map<String,Object> buildMessageHeaders(TestContext context)
public void setDataDictionary(DataDictionary dataDictionary)
MessageContentBuildersetDataDictionary in interface MessageContentBuilderpublic DataDictionary getDataDictionary()
public void setMessageHeaders(Map<String,Object> messageHeaders)
messageHeaders - the controlMessageHeaders to setpublic void setHeaderResources(List<String> headerResources)
headerResources - the messageHeaderResource to setpublic void setHeaderData(List<String> headerData)
headerData - public Map<String,Object> getMessageHeaders()
public List<String> getHeaderResources()
public List<String> getHeaderData()
public void add(MessageConstructionInterceptor interceptor)
add in interface MessageContentBuilderinterceptor - public List<MessageConstructionInterceptor> getMessageInterceptors()
public void setMessageInterceptors(List<MessageConstructionInterceptor> messageInterceptors)
messageInterceptors - the messageInterceptors to setCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.