modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/ReceiveMessageBuilder.java
public T extractFromPayload(final String path, final String variable) {
        if (JsonPathMessageValidationContext.isJsonPathExpression(path)) {
            getJsonPathVariableExtractor().getJsonPathExpressions().put(path, variable);
        } else {
            getXpathVariableExtractor().getXpathExpressions().put(path, variable);
        }
        return self;
    }
/**
     * Extract message element via XPath or JSONPath from message payload as new test variable.
     * @param path
     * @param variable
     * @return
     */
Extract message element via XPath or JSONPath from message payload as new test variable.
@param path
@param variable
@return
Extract message element via XPath or JSONPath from message payload as new test variable . @param path @param variable @return
public T extractFromPayload(final String path, final String variable) {
        if (JsonPathMessageValidationContext.isJsonPathExpression(path)) {
            getJsonPathVariableExtractor().getJsonPathExpressions().put(path, variable);
        } else {
            getXpathVariableExtractor().getXpathExpressions().put(path, variable);
        }
        return self;
    }
public T extractFromPayload ( final String path , final String variable ) { if ( JsonPathMessageValidationContext . isJsonPathExpression ( path ) ) { getJsonPathVariableExtractor ( ) . getJsonPathExpressions ( ) . put ( path , variable ) ; } else { getXpathVariableExtractor ( ) . getXpathExpressions ( ) . put ( path , variable ) ; } return self ; }
Extract message element via XPath or JSONPath from message payload as new test variable.
Extract message element via XPath or JSONPath from message payload as new test variable .