com.consol.citrus.validation.script
Class GroovyScriptMessageBuilder

java.lang.Object
  extended by com.consol.citrus.validation.builder.AbstractMessageContentBuilder<String>
      extended by com.consol.citrus.validation.script.GroovyScriptMessageBuilder
All Implemented Interfaces:
MessageContentBuilder<String>

public class GroovyScriptMessageBuilder
extends AbstractMessageContentBuilder<String>

Builds a control message from Groovy code with markup builder support.

Author:
Christoph Deppisch

Constructor Summary
GroovyScriptMessageBuilder()
           
 
Method Summary
 String buildMessagePayload(TestContext context)
          Build the control message from script code.
 String getScriptData()
          Gets the scriptData.
 String getScriptResourcePath()
          Gets the scriptResource.
 void setScriptData(String scriptData)
          Set message payload data as inline Groovy MarkupBuilder script.
 void setScriptResourcePath(String scriptResource)
          Message payload as external Groovy MarkupBuilder script file resource.
 
Methods inherited from class com.consol.citrus.validation.builder.AbstractMessageContentBuilder
buildMessageContent, buildMessageHeaders, getMessageHeaderData, getMessageHeaderResourcePath, getMessageHeaders, setMessageHeaderData, setMessageHeaderResourcePath, setMessageHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyScriptMessageBuilder

public GroovyScriptMessageBuilder()
Method Detail

buildMessagePayload

public String buildMessagePayload(TestContext context)
Build the control message from script code.

Specified by:
buildMessagePayload in class AbstractMessageContentBuilder<String>

setScriptData

public void setScriptData(String scriptData)
Set message payload data as inline Groovy MarkupBuilder script.

Parameters:
scriptData - the scriptData to set

setScriptResourcePath

public void setScriptResourcePath(String scriptResource)
Message payload as external Groovy MarkupBuilder script file resource.

Parameters:
scriptResource - the scriptResource to set

getScriptResourcePath

public String getScriptResourcePath()
Gets the scriptResource.

Returns:
the scriptResource

getScriptData

public String getScriptData()
Gets the scriptData.

Returns:
the scriptData


Copyright © 2008-2013 ConSol* Consulting&Solutions GmbH. All Rights Reserved.