Class ApiCallSection

java.lang.Object
org.elasticsearch.test.rest.yaml.section.ApiCallSection

public class ApiCallSection extends Object
Represents a test fragment that contains the information needed to call an api
  • Constructor Details

    • ApiCallSection

      public ApiCallSection(String api)
  • Method Details

    • getApi

      public String getApi()
    • getParams

      public Map<String,String> getParams()
    • addParam

      public void addParam(String key, String value)
    • addHeaders

      public void addHeaders(Map<String,String> otherHeaders)
    • getHeaders

      public Map<String,String> getHeaders()
    • getBodies

      public List<Map<String,Object>> getBodies()
    • addBody

      public void addBody(Map<String,Object> body)
    • hasBody

      public boolean hasBody()
    • getNodeSelector

      public org.elasticsearch.client.NodeSelector getNodeSelector()
      Selects the node on which to run this request.
    • setNodeSelector

      public void setNodeSelector(org.elasticsearch.client.NodeSelector nodeSelector)
      Set the selector that decides which node can run this request.