public class ClientYamlTestResponse
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(java.lang.String path)
Parses the response body and extracts a specific value from it (identified by the provided path)
|
java.lang.Object |
evaluate(java.lang.String path,
Stash stash)
Parses the response body and extracts a specific value from it (identified by the provided path)
|
java.lang.Object |
getBody()
Returns the body properly parsed depending on the content type.
|
java.lang.String |
getBodyAsString()
Returns the body as a string
|
java.lang.String |
getReasonPhrase() |
int |
getStatusCode() |
java.util.List<java.lang.String> |
getWarningHeaders()
Get a list of all of the values of all warning headers returned in the response.
|
boolean |
isError() |
public int getStatusCode()
public java.lang.String getReasonPhrase()
public java.util.List<java.lang.String> getWarningHeaders()
public java.lang.Object getBody() throws java.io.IOException
java.io.IOException
public java.lang.String getBodyAsString()
public boolean isError()
public java.lang.Object evaluate(java.lang.String path) throws java.io.IOException
java.io.IOException
public java.lang.Object evaluate(java.lang.String path, Stash stash) throws java.io.IOException
java.io.IOException