Package org.citrusframework.actions
Interface MessageBuilderFactory<T extends TestAction,M extends MessageBuilderFactory<T,M>>
- All Superinterfaces:
ReferenceResolverAwareBuilder<T,,M> TestActionBuilder<T>
- All Known Subinterfaces:
HttpReceiveRequestMessageBuilderFactory<T,,M> HttpReceiveResponseMessageBuilderFactory<T,,M> HttpSendRequestMessageBuilderFactory<T,,M> HttpSendResponseMessageBuilderFactory<T,,M> ReceiveMessageBuilderFactory<T,,M> SendMessageBuilderFactory<T,,M> SoapClientReceiveMessageBuilderFactory<T,,M> SoapSendFaultMessageBuilderFactory<T,,M> SoapSendMessageBuilderFactory<T,M>
public interface MessageBuilderFactory<T extends TestAction,M extends MessageBuilderFactory<T,M>>
extends TestActionBuilder<T>, ReferenceResolverAwareBuilder<T,M>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.citrusframework.TestActionBuilder
TestActionBuilder.DelegatingTestActionBuilder<T extends TestAction> -
Field Summary
Fields inherited from interface org.citrusframework.TestActionBuilder
logger, RESOURCE_PATH, TYPE_RESOLVER -
Method Summary
Modifier and TypeMethodDescriptionAdds message payload data to this builder.body(MessagePayloadBuilder payloadBuilder) Sets the payload data on the message builder implementation.body(MessagePayloadBuilder.Builder<?, ?> payloadBuilder) Sets the payload data on the message builder implementation.Adds message payload resource to this builder.Adds message payload resource to this builder.dictionary(String dictionaryName) Sets explicit data dictionary by name.dictionary(DataDictionary<?> dictionary) Sets explicit data dictionary for this action.extract(VariableExtractor extractor) Adds variable extractor on the message.extract(VariableExtractor.Builder<?, ?> builder) Adds message processor on the message as fluent builder.extract(VariableExtractorAdapter adapter) Adds message processor on the message.Build message from given message template.from(MessageBuilder messageBuilder) Build message from given message builder.Adds message header data to this builder's message.Adds message header name value pair to this builder's message.header(MessageHeaderDataBuilder headerDataBuilder) Adds message header data builder to this builder's message.Adds message header data as file resource to this builder's message.Adds message header data as file resource to this builder's message.Adds message headers to this builder's message.Sets the message name.process(MessageProcessor processor) Adds message processor on the message.process(MessageProcessor.Builder<?, ?> builder) Adds message processor on the message as fluent builder.process(MessageProcessorAdapter adapter) Adds message processor on the message as fluent builder.Sets an explicit message type for this message.type(MessageType messageType) Sets an explicit message type for this message.Methods inherited from interface org.citrusframework.actions.ReferenceResolverAwareBuilder
withReferenceResolverMethods inherited from interface org.citrusframework.TestActionBuilder
build
-
Method Details
-
from
Build message from given message builder.- Parameters:
messageBuilder-- Returns:
- The modified message action builder
-
from
Build message from given message template.- Parameters:
controlMessage-- Returns:
- The modified message action builder
-
type
Sets an explicit message type for this message.- Parameters:
messageType-- Returns:
- The modified message action builder
-
type
Sets an explicit message type for this message.- Parameters:
messageType- the type of the message indicates the content type (e.g. Xml, Json, binary).- Returns:
- The modified message action builder
-
body
Sets the payload data on the message builder implementation.- Parameters:
payloadBuilder-- Returns:
- The modified message action builder
-
body
Sets the payload data on the message builder implementation.- Parameters:
payloadBuilder-- Returns:
- The modified message action builder
-
body
Adds message payload data to this builder.- Parameters:
payload-- Returns:
- The modified message action builder
-
body
Adds message payload resource to this builder.- Parameters:
payloadResource-- Returns:
- The modified message action builder
-
body
Adds message payload resource to this builder.- Parameters:
payloadResource-charset-- Returns:
- The modified message action builder
-
header
Adds message header name value pair to this builder's message.- Parameters:
name-value-- Returns:
- The modified message action builder
-
headers
Adds message headers to this builder's message.- Parameters:
headers-- Returns:
- The modified message action builder
-
header
Adds message header data to this builder's message. Message header data is used in SOAP messages for instance as header XML fragment.- Parameters:
data-- Returns:
- The modified message action builder
-
header
Adds message header data builder to this builder's message. Message header data is used in SOAP messages as XML fragment for instance.- Parameters:
headerDataBuilder-- Returns:
- The modified message action builder
-
header
Adds message header data as file resource to this builder's message. Message header data is used in SOAP messages for instance as header XML fragment.- Parameters:
resource-- Returns:
- The modified message action builder
-
header
Adds message header data as file resource to this builder's message. Message header data is used in SOAP messages for instance as header XML fragment.- Parameters:
resource-charset-- Returns:
- The modified message action builder
-
name
Sets the message name.- Parameters:
name-- Returns:
- The modified message action builder
-
process
Adds message processor on the message.- Parameters:
processor-- Returns:
- The modified message action builder
-
process
Adds message processor on the message as fluent builder.- Parameters:
builder-- Returns:
- The modified message action builder
-
process
Adds message processor on the message as fluent builder.- Parameters:
adapter-- Returns:
- The modified message action builder
-
extract
Adds variable extractor on the message. -
extract
Adds message processor on the message. -
extract
Adds message processor on the message as fluent builder. -
dictionary
Sets explicit data dictionary for this action.- Parameters:
dictionary-- Returns:
- The modified message action builder
-
dictionary
Sets explicit data dictionary by name.- Parameters:
dictionaryName-- Returns:
- The modified message action builder
-