public interface InputContext
InvocationDocument is abstraction for original input document for the executed Stitch Invocation. It is used for extracting single or list of values based on pathExpressions. Actual sub-class is JsonInputContext. JsonInputContext is used for Json/YAML inputs. If YAML was in original input it is transformed into equivalent Json document. Extraction of values and lists is done by calling methods with valid JsonPath expression (see referral implementation of jayway.jsonPath:json-path)
  • Method Details

    • pathExistsWithValue

      boolean pathExistsWithValue(String pathExpression)
      Returns true if path exists and has assigned value to it.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated flag for given pathExpression
    • getStringValue

      String getStringValue(String pathExpression)
      Returns String value in given path. If path doesn't exist or isn't single value null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated String value for given pathExpression
    • getBooleanValue

      Boolean getBooleanValue(String pathExpression)
      Returns Boolean value in given path. If path doesn't exist or isn't single value null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated @link Boolean} value for given pathExpression
    • getIntegerValue

      Integer getIntegerValue(String pathExpression)
      Returns Integer value in given path. If path doesn't exist or isn't single value null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated Integer value for given pathExpression
    • getLongValue

      Long getLongValue(String pathExpression)
      Returns Long value in given path. If path doesn't exist or isn't single value null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated Long value for given pathExpression
    • getDoubleValue

      Double getDoubleValue(String pathExpression)
      Returns Double value in given path. If path doesn't exist or isn't single value null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated Double value for given pathExpression
    • getJsonNode

      com.fasterxml.jackson.databind.JsonNode getJsonNode(String pathExpression)
      Returns JsonNode value in given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated JsonNode value for given pathExpression
      See Also:
      • JsonNode
    • getStringList

      List<String> getStringList(String pathExpression)
      Returns List for given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated List value for given pathExpression
    • getBooleanList

      List<Boolean> getBooleanList(String pathExpression)
      Returns List of Boolean for given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated List of Boolean value for given pathExpression
    • getIntegerList

      List<Integer> getIntegerList(String pathExpression)
      Returns List of Integer for given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated List of Integer value for given pathExpression
    • getLongList

      List<Long> getLongList(String pathExpression)
      Returns List of Long for given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated List of Long value for given pathExpression
    • getDoubleList

      List<Double> getDoubleList(String pathExpression)
      Returns List of Double for given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated List of Double value for given pathExpression
    • getJsonNodeList

      List<com.fasterxml.jackson.databind.JsonNode> getJsonNodeList(String pathExpression)
      Returns List of JsonNode for given path. If path doesn't exist null will be returned.
      Parameters:
      pathExpression - on which we run check
      Returns:
      evaluated List of JsonNode value for given pathExpression
      See Also:
      • JsonNode