modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SendMessageBuilder.java
public T xpath(String expression, String value) {
        if (xpathMessageConstructionInterceptor == null) {
            xpathMessageConstructionInterceptor = new XpathMessageConstructionInterceptor();

            if (getAction().getMessageBuilder() != null) {
                (getAction().getMessageBuilder()).add(xpathMessageConstructionInterceptor);
            } else {
                PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder();
                messageBuilder.getMessageInterceptors().add(xpathMessageConstructionInterceptor);

                getAction().setMessageBuilder(messageBuilder);
            }
        }

        xpathMessageConstructionInterceptor.getXPathExpressions().put(expression, value);
        return self;
    }
/**
     * Adds XPath manipulating expression that evaluates to message payload before sending.
     * @param expression
     * @param value
     * @return
     */
Adds XPath manipulating expression that evaluates to message payload before sending.
@param expression
@param value
@return
Adds XPath manipulating expression that evaluates to message payload before sending . @param expression @param value @return
public T xpath(String expression, String value) {
        if (xpathMessageConstructionInterceptor == null) {
            xpathMessageConstructionInterceptor = new XpathMessageConstructionInterceptor();
            if (getAction().getMessageBuilder() != null) {
                (getAction().getMessageBuilder()).add(xpathMessageConstructionInterceptor);
            } else {
                PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder();
                messageBuilder.getMessageInterceptors().add(xpathMessageConstructionInterceptor);
                getAction().setMessageBuilder(messageBuilder);
            }
        }
        xpathMessageConstructionInterceptor.getXPathExpressions().put(expression, value);
        return self;
    }
public T xpath ( String expression , String value ) { if ( xpathMessageConstructionInterceptor == null ) { xpathMessageConstructionInterceptor = new XpathMessageConstructionInterceptor ( ) ; if ( getAction ( ) . getMessageBuilder ( ) != null ) { ( getAction ( ) . getMessageBuilder ( ) ) . add ( xpathMessageConstructionInterceptor ) ; } else { PayloadTemplateMessageBuilder messageBuilder = new PayloadTemplateMessageBuilder ( ) ; messageBuilder . getMessageInterceptors ( ) . add ( xpathMessageConstructionInterceptor ) ; getAction ( ) . setMessageBuilder ( messageBuilder ) ; } } xpathMessageConstructionInterceptor . getXPathExpressions ( ) . put ( expression , value ) ; return self ; }
Adds XPath manipulating expression that evaluates to message payload before sending.
Adds XPath manipulating expression that evaluates to message payload before sending .