public class DoSection extends java.lang.Object implements ExecutableSection
XCONTENT_REGISTRY
Constructor and Description |
---|
DoSection(XContentLocation location) |
Modifier and Type | Method and Description |
---|---|
void |
execute(ClientYamlTestExecutionContext executionContext)
Executes the section passing in the execution context
|
ApiCallSection |
getApiCallSection() |
java.lang.String |
getCatch() |
java.util.List<java.lang.String> |
getExpectedWarningHeaders()
Warning headers that we expect from this response.
|
XContentLocation |
getLocation()
Get the location in the test that this was defined.
|
static DoSection |
parse(XContentParser parser) |
void |
setApiCallSection(ApiCallSection apiCallSection) |
void |
setCatch(java.lang.String catchParam) |
void |
setExpectedWarningHeaders(java.util.List<java.lang.String> expectedWarningHeaders)
Set the warning headers that we expect from this response.
|
public DoSection(XContentLocation location)
public static DoSection parse(XContentParser parser) throws java.io.IOException
parse
in interface ExecutableSection
java.io.IOException
public java.lang.String getCatch()
public void setCatch(java.lang.String catchParam)
public ApiCallSection getApiCallSection()
public void setApiCallSection(ApiCallSection apiCallSection)
public java.util.List<java.lang.String> getExpectedWarningHeaders()
public void setExpectedWarningHeaders(java.util.List<java.lang.String> expectedWarningHeaders)
public XContentLocation getLocation()
ExecutableSection
getLocation
in interface ExecutableSection
public void execute(ClientYamlTestExecutionContext executionContext) throws java.io.IOException
ExecutableSection
execute
in interface ExecutableSection
java.io.IOException