Class DoSection

  • All Implemented Interfaces:
    ExecutableSection

    public class DoSection
    extends java.lang.Object
    implements ExecutableSection
    Represents a do section: - do: catch: missing headers: Authorization: Basic user:pass Content-Type: application/json warnings: - Stuff is deprecated, yo - Don't use deprecated stuff - Please, stop. It hurts. update: index: test_1 type: test id: 1 body: { doc: { foo: bar } }
    • Method Detail

      • parse

        public static DoSection parse​(XContentParser parser)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getCatch

        public java.lang.String getCatch()
      • setCatch

        public void setCatch​(java.lang.String catchParam)
      • setApiCallSection

        public void setApiCallSection​(ApiCallSection apiCallSection)
      • getExpectedWarningHeaders

        public java.util.List<java.lang.String> getExpectedWarningHeaders()
        Warning headers that we expect from this response. If the headers don't match exactly this request is considered to have failed. Defaults to emptyList.
      • setExpectedWarningHeaders

        public void setExpectedWarningHeaders​(java.util.List<java.lang.String> expectedWarningHeaders)
        Set the warning headers that we expect from this response. If the headers don't match exactly this request is considered to have failed. Defaults to emptyList.