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 without any specific direction inbound or outbound.
|
Message |
buildMessageContent(TestContext context,
String messageType,
MessageDirection direction)
Constructs the control message with headers and payload coming from
subclass implementation.
|
List<String> |
buildMessageHeaderData(TestContext context)
Build message header data.
|
Map<String,Object> |
buildMessageHeaders(TestContext context,
String messageType)
Build message headers.
|
abstract Object |
buildMessagePayload(TestContext context,
String messageType)
Build message payload.
|
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.
|
String |
getMessageName()
Gets the value of the messageName property.
|
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.
|
void |
setMessageName(String messageName)
Sets the messageName property.
|
public Message buildMessageContent(TestContext context, String messageType)
context
- messageType
- public Message buildMessageContent(TestContext context, String messageType, MessageDirection direction)
buildMessageContent
in interface MessageContentBuilder
context
- the current test context.messageType
- the message type to build.public abstract Object buildMessagePayload(TestContext context, String messageType)
context
- messageType
- public Map<String,Object> buildMessageHeaders(TestContext context, String messageType)
context
- The test context of the messagemessageType
- The message type of the Messagepublic List<String> buildMessageHeaderData(TestContext context)
context
- public void setMessageName(String messageName)
messageName
- public String getMessageName()
public void setDataDictionary(DataDictionary dataDictionary)
MessageContentBuilder
setDataDictionary
in interface MessageContentBuilder
public 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 MessageContentBuilder
interceptor
- public List<MessageConstructionInterceptor> getMessageInterceptors()
public void setMessageInterceptors(List<MessageConstructionInterceptor> messageInterceptors)
messageInterceptors
- the messageInterceptors to setCopyright © 2008–2018 ConSol Software GmbH. All rights reserved.