Package com.consol.citrus.message
Interface ScriptPayloadBuilder
-
- All Superinterfaces:
MessagePayloadBuilder
public interface ScriptPayloadBuilder extends MessagePayloadBuilder
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.consol.citrus.message.MessagePayloadBuilder
MessagePayloadBuilder.Builder<T extends MessagePayloadBuilder,B extends MessagePayloadBuilder.Builder<T,B>>
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGLoggerstatic StringRESOURCE_PATHMessage processor resource lookup pathstatic TypeResolverTYPE_RESOLVERType resolver to find custom message processors on classpath via resource path lookup
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T extends ScriptPayloadBuilder>
Optional<T>lookup(String type)Resolves processor from resource path lookup with given processor resource name.voidsetFile(org.springframework.core.io.Resource file)voidsetScript(String script)-
Methods inherited from interface com.consol.citrus.message.MessagePayloadBuilder
buildPayload
-
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
Logger
-
RESOURCE_PATH
static final String RESOURCE_PATH
Message processor resource lookup path- See Also:
- Constant Field Values
-
TYPE_RESOLVER
static final TypeResolver TYPE_RESOLVER
Type resolver to find custom message processors on classpath via resource path lookup
-
-
Method Detail
-
lookup
static <T extends ScriptPayloadBuilder> Optional<T> lookup(String type)
Resolves processor from resource path lookup with given processor resource name. Scans classpath for processor meta information with given name and returns instance of processor. Returns optional instead of throwing exception when no processor could be found.- Parameters:
type-- Returns:
-
setScript
void setScript(String script)
-
setFile
void setFile(org.springframework.core.io.Resource file)
-
-