Class RestQuery

java.lang.Object
net.serenitybdd.core.rest.RestQuery

public class RestQuery extends Object
  • Constructor Details

  • Method Details

    • withParameters

      public RestQuery withParameters(List<Object> parameters)
    • withParameters

      public RestQuery withParameters(Map<String,?> parameterMap)
    • withResponse

      public RestQuery withResponse(String responseBody)
    • withStatusCode

      public RestQuery withStatusCode(Integer statusCode)
    • withContent

      public RestQuery withContent(String content)
    • withContentType

      public RestQuery withContentType(String contentType)
    • withResponseCookies

      public RestQuery withResponseCookies(String responseCookies)
    • withResponseHeaders

      public RestQuery withResponseHeaders(String responseHeaders)
    • withRequestCookies

      public RestQuery withRequestCookies(String requestCookies)
    • withRequestHeaders

      public RestQuery withRequestHeaders(String requestHeaders)
    • getMethod

      public RestMethod getMethod()
    • getPath

      public String getPath()
    • getParameters

      public Optional<? extends List<Object>> getParameters()
    • getParameterMap

      public Optional<? extends Map<String,?>> getParameterMap()
    • getResponseBody

      public String getResponseBody()
    • getContent

      public String getContent()
    • getContentType

      public String getContentType()
    • getStatusCode

      public Integer getStatusCode()
    • getRequestHeaders

      public String getRequestHeaders()
    • getRequestCookies

      public String getRequestCookies()
    • getResponseHeaders

      public String getResponseHeaders()
    • getResponseCookies

      public String getResponseCookies()
    • hasParameters

      public boolean hasParameters()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFormattedQuery

      public String getFormattedQuery()
    • withMethod

      public static RestQuery.RestQueryBuilder withMethod(RestMethod method)