Class RequestSpecificationDecorated

java.lang.Object
net.serenitybdd.rest.decorators.request.RequestSpecificationDecorated
All Implemented Interfaces:
io.restassured.specification.FilterableRequestSpecification, io.restassured.specification.QueryableRequestSpecification, io.restassured.specification.RequestSender, io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>, io.restassured.specification.RequestSpecification

public abstract class RequestSpecificationDecorated extends Object implements io.restassured.specification.FilterableRequestSpecification
User: YamStranger Date: 3/16/16 Time: 2:08 PM
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final io.restassured.internal.RequestSpecificationImpl
     
    protected final ReflectionHelper<io.restassured.internal.RequestSpecificationImpl>
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestSpecificationDecorated(io.restassured.internal.RequestSpecificationImpl core)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.restassured.specification.RequestSpecification
    accept(io.restassured.http.ContentType contentType)
     
    io.restassured.specification.RequestSpecification
    accept(String mediaTypes)
     
    io.restassured.specification.RequestSpecification
    and()
     
    io.restassured.specification.AuthenticationSpecification
     
    io.restassured.specification.AuthenticationSpecification
     
    io.restassured.specification.RequestSpecification
    basePath(String basePath)
     
    io.restassured.specification.RequestSpecification
    baseUri(String baseUri)
     
    io.restassured.specification.RequestSpecification
    body(byte[] body)
     
    io.restassured.specification.RequestSpecification
    body(File body)
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.RequestSpecification
    body(Object object)
     
    io.restassured.specification.RequestSpecification
    body(Object object, io.restassured.mapper.ObjectMapper mapper)
     
    io.restassured.specification.RequestSpecification
    body(Object object, io.restassured.mapper.ObjectMapperType mapperType)
     
    io.restassured.specification.RequestSpecification
    body(String body)
     
    protected io.restassured.specification.ResponseSpecification
    check(io.restassured.specification.ResponseSpecification specification)
     
    io.restassured.specification.RequestSpecification
    config(io.restassured.config.RestAssuredConfig config)
     
    io.restassured.specification.RequestSpecification
    contentType(io.restassured.http.ContentType contentType)
     
    io.restassured.specification.RequestSpecification
    contentType(String contentType)
     
    io.restassured.specification.RequestSpecification
    cookie(io.restassured.http.Cookie cookie)
     
    io.restassured.specification.RequestSpecification
    cookie(String cookieName)
     
    io.restassured.specification.RequestSpecification
    cookie(String cookieName, Object value, Object... additionalValues)
     
    io.restassured.specification.RequestSpecification
    cookies(io.restassured.http.Cookies cookies)
     
    io.restassured.specification.RequestSpecification
    cookies(String firstCookieName, Object firstCookieValue, Object... cookieNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    cookies(Map<String,?> cookies)
     
    decorate(io.restassured.response.Response response)
     
    protected io.restassured.specification.ResponseSpecification
    decorate(io.restassured.specification.ResponseSpecification specification)
     
    io.restassured.response.Response
     
    io.restassured.response.Response
    delete(String path, Object... pathParams)
     
    io.restassured.response.Response
    delete(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    delete(URI uri)
     
    io.restassured.response.Response
    delete(URL url)
     
    void
     
    boolean
     
    protected io.restassured.response.Response
    execute(net.serenitybdd.model.rest.RestMethod method, String path, Object... pathParams)
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.RequestSpecification
    filter(io.restassured.filter.Filter filter)
    Add a filter that will be used in the request.
    io.restassured.specification.RequestSpecification
    filters(List<io.restassured.filter.Filter> filters)
    Add list of filters that will be used in the request
    io.restassured.specification.RequestSpecification
    formParam(String parameterName, Object... parameterValues)
     
    io.restassured.specification.RequestSpecification
    formParam(String parameterName, Collection<?> parameterValues)
     
    io.restassured.specification.RequestSpecification
    formParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    formParams(Map<String,?> parametersMap)
     
    io.restassured.response.Response
    get()
     
    io.restassured.response.Response
    get(String path, Object... pathParams)
     
    io.restassured.response.Response
    get(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    get(URI uri)
     
    io.restassured.response.Response
    get(URL url)
     
    io.restassured.authentication.AuthenticationScheme
     
     
     
    <T> T
     
    io.restassured.config.RestAssuredConfig
     
     
    io.restassured.http.Cookies
     
    io.restassured.internal.RequestSpecificationImpl
    Method created for using in tests
    List<io.restassured.filter.Filter>
     
     
    protected List<io.restassured.filter.Filter>
    Method created ONLY for using in groovy (rest assured internals)
    protected List<io.restassured.filter.Filter>
    Method created ONLY for using in groovy (rest assured internals)
     
    io.restassured.http.Headers
     
    org.apache.http.client.HttpClient
     
    io.restassured.response.Response
     
     
    List<io.restassured.specification.MultiPartSpecification>
     
     
     
     
    int
     
    io.restassured.specification.ProxySpecification
     
     
     
    protected io.restassured.config.RestAssuredConfig
    Method created for using ONLY in groovy (rest assured internals)
    protected io.restassured.config.RestAssuredConfig
    Method created for using ONLY in groovy (rest assured internals)
     
     
     
     
     
    io.restassured.specification.RequestSpecification
     
    int
     
    io.restassured.response.Response
     
    io.restassured.response.Response
    head(String path, Object... pathParams)
     
    io.restassured.response.Response
    head(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    head(URI uri)
     
    io.restassured.response.Response
    head(URL url)
     
    io.restassured.specification.RequestSpecification
    header(io.restassured.http.Header header)
     
    io.restassured.specification.RequestSpecification
    header(String headerName, Object headerValue, Object... additionalHeaderValues)
     
    io.restassured.specification.RequestSpecification
    headers(io.restassured.http.Headers headers)
     
    io.restassured.specification.RequestSpecification
    headers(String firstHeaderName, Object firstHeaderValue, Object... headerNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    headers(Map<String,?> headers)
     
    protected Map<String,Object>
     
    io.restassured.specification.RequestSpecification
    keyStore(File pathToJks, String password)
     
    io.restassured.specification.RequestSpecification
    keyStore(String pathToJks, String password)
     
    io.restassured.specification.RequestLogSpecification
    log()
     
    protected io.restassured.internal.log.LogRepository
     
    io.restassured.specification.RequestSpecification
    multiPart(io.restassured.specification.MultiPartSpecification multiPartSpecification)
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, File file)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, File file, String mimeType)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, Object object)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, Object object, String mimeType)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, String contentBody)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, String fileName, byte[] bytes)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, String fileName, byte[] bytes, String mimeType)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, String fileName, InputStream stream)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, String fileName, InputStream stream, String mimeType)
     
    io.restassured.specification.RequestSpecification
    multiPart(String controlName, String contentBody, String mimeType)
     
    io.restassured.response.Response
     
    io.restassured.response.Response
    options(String path, Object... pathParams)
     
    io.restassured.response.Response
    options(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    options(URI uri)
     
    io.restassured.response.Response
    options(URL url)
     
    io.restassured.specification.RequestSpecification
    param(String parameterName, Object... parameterValues)
     
    io.restassured.specification.RequestSpecification
    param(String parameterName, Collection<?> parameterValues)
     
    io.restassured.specification.RequestSpecification
    params(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    params(Map<String,?> parametersMap)
     
    io.restassured.response.Response
     
    io.restassured.response.Response
    patch(String path, Object... pathParams)
     
    io.restassured.response.Response
    patch(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    patch(URI uri)
     
    io.restassured.response.Response
    patch(URL url)
     
    io.restassured.specification.RequestSpecification
    pathParam(String parameterName, Object parameterValue)
     
    io.restassured.specification.RequestSpecification
    pathParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    pathParams(Map<String,?> parameterNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    port(int port)
     
    io.restassured.response.Response
     
    io.restassured.response.Response
    post(String path, Object... pathParams)
     
    io.restassured.response.Response
    post(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    post(URI uri)
     
    io.restassured.response.Response
    post(URL url)
     
    io.restassured.response.Response
    put()
     
    io.restassured.response.Response
    put(String path, Object... pathParams)
     
    io.restassured.response.Response
    put(String path, Map<String,?> pathParams)
     
    io.restassured.response.Response
    put(URI uri)
     
    io.restassured.response.Response
    put(URL url)
     
    io.restassured.specification.RequestSpecification
    queryParam(String parameterName, Object... parameterValues)
     
    io.restassured.specification.RequestSpecification
    queryParam(String parameterName, Collection<?> parameterValues)
     
    io.restassured.specification.RequestSpecification
    queryParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
     
    io.restassured.specification.RequestSpecification
    queryParams(Map<String,?> parametersMap)
     
    io.restassured.specification.RedirectSpecification
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.response.Response
    request(String method, String path, Object... pathParams)
     
    io.restassured.response.Response
    request(String method, URI uri)
     
    io.restassured.response.Response
    request(String method, URL url)
     
    io.restassured.response.Response
    request(net.serenitybdd.model.rest.RestMethod method, String path, Object... pathParams)
     
    io.restassured.response.Response
    request(net.serenitybdd.model.rest.RestMethod method, URI uri)
     
    io.restassured.response.Response
    request(net.serenitybdd.model.rest.RestMethod method, URL url)
     
    io.restassured.specification.ResponseSpecification
     
    protected String
     
    io.restassured.specification.RequestSpecification
    sessionId(String sessionIdValue)
     
    io.restassured.specification.RequestSpecification
    sessionId(String sessionIdName, String sessionIdValue)
     
    protected io.restassured.config.RestAssuredConfig
    Method created ONLY for using in groovy (rest assured internals)
    protected void
    setAuthenticationScheme(io.restassured.authentication.AuthenticationScheme scheme)
    Method created ONLY for using in groovy (rest assured internals)
    protected void
    setresponseSpecification(io.restassured.specification.ResponseSpecification specification)
    Method created for using ONLY in groovy (rest assured internals)
    protected void
    setResponseSpecification(io.restassured.specification.ResponseSpecification specification)
    Method created for using ONLY in groovy (rest assured internals)
    void
     
    io.restassured.specification.RequestSpecification
    spec(io.restassured.specification.RequestSpecification requestSpecificationToMerge)
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.ResponseSpecification
     
    io.restassured.specification.RequestSpecification
    trustStore(KeyStore trustStore)
     
    io.restassured.specification.RequestSpecification
    urlEncodingEnabled(boolean isEnabled)
     
    io.restassured.specification.RequestSpecification
     
    io.restassured.specification.RequestSpecification
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.restassured.specification.FilterableRequestSpecification

    path, removeCookie, removeCookie, removeCookies, removeFormParam, removeHeader, removeHeaders, removeNamedPathParam, removeParam, removePathParam, removeQueryParam, removeUnnamedPathParam, removeUnnamedPathParamByValue, replaceCookie, replaceCookie, replaceCookies, replaceHeader, replaceHeaders

    Methods inherited from interface io.restassured.specification.QueryableRequestSpecification

    getConfig, getCookies, getHeaders, getMultiPartParams

    Methods inherited from interface io.restassured.specification.RequestSenderOptions

    request, request, request, request, request

    Methods inherited from interface io.restassured.specification.RequestSpecification

    accept, accept, and, auth, basePath, baseUri, body, body, body, body, body, body, body, config, contentType, contentType, cookie, cookie, cookie, cookies, cookies, cookies, csrf, csrf, disableCsrf, expect, filters, formParam, formParam, formParams, formParams, given, header, header, headers, headers, headers, keyStore, keyStore, keyStore, log, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, multiPart, noContentType, noFilters, noFiltersOfType, param, param, params, params, pathParam, pathParams, pathParams, port, proxy, proxy, proxy, proxy, proxy, proxy, queryParam, queryParam, queryParams, queryParams, redirects, relaxedHTTPSValidation, relaxedHTTPSValidation, request, response, sessionId, sessionId, spec, that, then, trustStore, trustStore, trustStore, urlEncodingEnabled, when, with
  • Field Details

    • core

      protected final io.restassured.internal.RequestSpecificationImpl core
    • helper

      protected final ReflectionHelper<io.restassured.internal.RequestSpecificationImpl> helper
    • reporting

      protected RestReportingHelper reporting
  • Constructor Details

    • RequestSpecificationDecorated

      public RequestSpecificationDecorated(io.restassured.internal.RequestSpecificationImpl core)
  • Method Details

    • disableReporting

      public void disableReporting()
    • get

      public io.restassured.response.Response get()
      Specified by:
      get in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • get

      public io.restassured.response.Response get(URL url)
      Specified by:
      get in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • get

      public io.restassured.response.Response get(String path, Object... pathParams)
      Specified by:
      get in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • request

      public io.restassured.response.Response request(String method, URI uri)
      Specified by:
      request in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • request

      public io.restassured.response.Response request(String method, URL url)
      Specified by:
      request in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • request

      public io.restassured.response.Response request(net.serenitybdd.model.rest.RestMethod method, String path, Object... pathParams)
    • request

      public io.restassured.response.Response request(String method, String path, Object... pathParams)
      Specified by:
      request in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • request

      public io.restassured.response.Response request(net.serenitybdd.model.rest.RestMethod method, URI uri)
    • request

      public io.restassured.response.Response request(net.serenitybdd.model.rest.RestMethod method, URL url)
    • get

      public io.restassured.response.Response get(String path, Map<String,?> pathParams)
      Specified by:
      get in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • get

      public io.restassured.response.Response get(URI uri)
      Specified by:
      get in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • post

      public io.restassured.response.Response post()
      Specified by:
      post in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • post

      public io.restassured.response.Response post(URL url)
      Specified by:
      post in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • post

      public io.restassured.response.Response post(String path, Object... pathParams)
      Specified by:
      post in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • post

      public io.restassured.response.Response post(String path, Map<String,?> pathParams)
      Specified by:
      post in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • post

      public io.restassured.response.Response post(URI uri)
      Specified by:
      post in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • put

      public io.restassured.response.Response put()
      Specified by:
      put in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • put

      public io.restassured.response.Response put(URL url)
      Specified by:
      put in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • put

      public io.restassured.response.Response put(URI uri)
      Specified by:
      put in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • put

      public io.restassured.response.Response put(String path, Object... pathParams)
      Specified by:
      put in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • put

      public io.restassured.response.Response put(String path, Map<String,?> pathParams)
      Specified by:
      put in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • delete

      public io.restassured.response.Response delete()
      Specified by:
      delete in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • delete

      public io.restassured.response.Response delete(URL url)
      Specified by:
      delete in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • delete

      public io.restassured.response.Response delete(URI uri)
      Specified by:
      delete in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • delete

      public io.restassured.response.Response delete(String path, Object... pathParams)
      Specified by:
      delete in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • delete

      public io.restassured.response.Response delete(String path, Map<String,?> pathParams)
      Specified by:
      delete in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • head

      public io.restassured.response.Response head()
      Specified by:
      head in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • head

      public io.restassured.response.Response head(URL url)
      Specified by:
      head in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • head

      public io.restassured.response.Response head(URI uri)
      Specified by:
      head in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • head

      public io.restassured.response.Response head(String path, Object... pathParams)
      Specified by:
      head in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • head

      public io.restassured.response.Response head(String path, Map<String,?> pathParams)
      Specified by:
      head in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • patch

      public io.restassured.response.Response patch()
      Specified by:
      patch in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • patch

      public io.restassured.response.Response patch(URL url)
      Specified by:
      patch in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • patch

      public io.restassured.response.Response patch(URI uri)
      Specified by:
      patch in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • patch

      public io.restassured.response.Response patch(String path, Object... pathParams)
      Specified by:
      patch in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • patch

      public io.restassured.response.Response patch(String path, Map<String,?> pathParams)
      Specified by:
      patch in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • options

      public io.restassured.response.Response options()
      Specified by:
      options in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • options

      public io.restassured.response.Response options(String path, Object... pathParams)
      Specified by:
      options in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • options

      public io.restassured.response.Response options(String path, Map<String,?> pathParams)
      Specified by:
      options in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • options

      public io.restassured.response.Response options(URI uri)
      Specified by:
      options in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • options

      public io.restassured.response.Response options(URL url)
      Specified by:
      options in interface io.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
    • execute

      protected io.restassured.response.Response execute(net.serenitybdd.model.rest.RestMethod method, String path, Object... pathParams)
    • getLastResponse

      public io.restassured.response.Response getLastResponse()
    • filter

      public io.restassured.specification.RequestSpecification filter(io.restassured.filter.Filter filter)
      Add a filter that will be used in the request.
      Specified by:
      filter in interface io.restassured.specification.RequestSpecification
      Parameters:
      filter - The filter to add
      Returns:
      the decorated request specification
    • filters

      public io.restassured.specification.RequestSpecification filters(List<io.restassured.filter.Filter> filters)
      Add list of filters that will be used in the request
      Specified by:
      filters in interface io.restassured.specification.RequestSpecification
      Parameters:
      filters - Filter list to add
      Returns:
      the decorated request specification
    • getDefinedFilters

      public List<io.restassured.filter.Filter> getDefinedFilters()
      Specified by:
      getDefinedFilters in interface io.restassured.specification.QueryableRequestSpecification
    • getContentType

      public String getContentType()
      Specified by:
      getContentType in interface io.restassured.specification.QueryableRequestSpecification
    • getProxySpecification

      public io.restassured.specification.ProxySpecification getProxySpecification()
      Specified by:
      getProxySpecification in interface io.restassured.specification.QueryableRequestSpecification
    • getAuthenticationScheme

      public io.restassured.authentication.AuthenticationScheme getAuthenticationScheme()
      Specified by:
      getAuthenticationScheme in interface io.restassured.specification.QueryableRequestSpecification
    • getBasePath

      public String getBasePath()
      Specified by:
      getBasePath in interface io.restassured.specification.QueryableRequestSpecification
    • getBaseUri

      public String getBaseUri()
      Specified by:
      getBaseUri in interface io.restassured.specification.QueryableRequestSpecification
    • getDerivedPath

      public String getDerivedPath()
      Specified by:
      getDerivedPath in interface io.restassured.specification.QueryableRequestSpecification
    • getUserDefinedPath

      public String getUserDefinedPath()
      Specified by:
      getUserDefinedPath in interface io.restassured.specification.QueryableRequestSpecification
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface io.restassured.specification.QueryableRequestSpecification
    • getURI

      public String getURI()
      Specified by:
      getURI in interface io.restassured.specification.QueryableRequestSpecification
    • getPort

      public int getPort()
      Specified by:
      getPort in interface io.restassured.specification.QueryableRequestSpecification
    • getRequestParams

      public Map<String,String> getRequestParams()
      Specified by:
      getRequestParams in interface io.restassured.specification.QueryableRequestSpecification
    • getFormParams

      public Map<String,String> getFormParams()
      Specified by:
      getFormParams in interface io.restassured.specification.QueryableRequestSpecification
    • getPathParams

      public Map<String,String> getPathParams()
      Specified by:
      getPathParams in interface io.restassured.specification.QueryableRequestSpecification
    • getNamedPathParams

      public Map<String,String> getNamedPathParams()
      Specified by:
      getNamedPathParams in interface io.restassured.specification.QueryableRequestSpecification
    • getUnnamedPathParams

      public Map<String,String> getUnnamedPathParams()
      Specified by:
      getUnnamedPathParams in interface io.restassured.specification.QueryableRequestSpecification
    • getUnnamedPathParamValues

      public List<String> getUnnamedPathParamValues()
      Specified by:
      getUnnamedPathParamValues in interface io.restassured.specification.QueryableRequestSpecification
    • getQueryParams

      public Map<String,String> getQueryParams()
      Specified by:
      getQueryParams in interface io.restassured.specification.QueryableRequestSpecification
    • getBody

      public <T> T getBody()
      Specified by:
      getBody in interface io.restassured.specification.QueryableRequestSpecification
    • getHttpClient

      public org.apache.http.client.HttpClient getHttpClient()
      Specified by:
      getHttpClient in interface io.restassured.specification.QueryableRequestSpecification
    • getUndefinedPathParamPlaceholders

      public List<String> getUndefinedPathParamPlaceholders()
      Specified by:
      getUndefinedPathParamPlaceholders in interface io.restassured.specification.QueryableRequestSpecification
    • getPathParamPlaceholders

      public List<String> getPathParamPlaceholders()
      Specified by:
      getPathParamPlaceholders in interface io.restassured.specification.QueryableRequestSpecification
    • log

      public io.restassured.specification.RequestLogSpecification log()
      Specified by:
      log in interface io.restassured.specification.RequestSpecification
    • logRepository

      protected io.restassured.internal.log.LogRepository logRepository()
    • redirects

      public io.restassured.specification.RedirectSpecification redirects()
      Specified by:
      redirects in interface io.restassured.specification.RequestSpecification
    • httpClientParams

      protected Map<String,Object> httpClientParams()
    • body

      public io.restassured.specification.RequestSpecification body(Object object)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • body

      public io.restassured.specification.RequestSpecification body(Object object, io.restassured.mapper.ObjectMapper mapper)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • body

      public io.restassured.specification.RequestSpecification body(Object object, io.restassured.mapper.ObjectMapperType mapperType)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • body

      public io.restassured.specification.RequestSpecification body(String body)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • body

      public io.restassured.specification.RequestSpecification body(byte[] body)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • body

      public io.restassured.specification.RequestSpecification body(File body)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • body

      public io.restassured.specification.RequestSpecification body(InputStream body)
      Specified by:
      body in interface io.restassured.specification.RequestSpecification
    • contentType

      public io.restassured.specification.RequestSpecification contentType(io.restassured.http.ContentType contentType)
      Specified by:
      contentType in interface io.restassured.specification.RequestSpecification
    • contentType

      public io.restassured.specification.RequestSpecification contentType(String contentType)
      Specified by:
      contentType in interface io.restassured.specification.RequestSpecification
    • getHeaders

      public io.restassured.http.Headers getHeaders()
      Specified by:
      getHeaders in interface io.restassured.specification.QueryableRequestSpecification
    • headers

      public io.restassured.specification.RequestSpecification headers(Map<String,?> headers)
      Specified by:
      headers in interface io.restassured.specification.RequestSpecification
    • headers

      public io.restassured.specification.RequestSpecification headers(String firstHeaderName, Object firstHeaderValue, Object... headerNameValuePairs)
      Specified by:
      headers in interface io.restassured.specification.RequestSpecification
    • headers

      public io.restassured.specification.RequestSpecification headers(io.restassured.http.Headers headers)
      Specified by:
      headers in interface io.restassured.specification.RequestSpecification
    • header

      public io.restassured.specification.RequestSpecification header(String headerName, Object headerValue, Object... additionalHeaderValues)
      Specified by:
      header in interface io.restassured.specification.RequestSpecification
    • header

      public io.restassured.specification.RequestSpecification header(io.restassured.http.Header header)
      Specified by:
      header in interface io.restassured.specification.RequestSpecification
    • accept

      public io.restassured.specification.RequestSpecification accept(io.restassured.http.ContentType contentType)
      Specified by:
      accept in interface io.restassured.specification.RequestSpecification
    • accept

      public io.restassured.specification.RequestSpecification accept(String mediaTypes)
      Specified by:
      accept in interface io.restassured.specification.RequestSpecification
    • getMultiPartParams

      public List<io.restassured.specification.MultiPartSpecification> getMultiPartParams()
      Specified by:
      getMultiPartParams in interface io.restassured.specification.QueryableRequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(io.restassured.specification.MultiPartSpecification multiPartSpecification)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, File file, String mimeType)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, Object object, String mimeType)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, String fileName, byte[] bytes, String mimeType)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, String fileName, InputStream stream, String mimeType)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, String contentBody, String mimeType)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(File file)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, File file)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, Object object)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, String fileName, byte[] bytes)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, String fileName, InputStream stream)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • multiPart

      public io.restassured.specification.RequestSpecification multiPart(String controlName, String contentBody)
      Specified by:
      multiPart in interface io.restassured.specification.RequestSpecification
    • params

      public io.restassured.specification.RequestSpecification params(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
      Specified by:
      params in interface io.restassured.specification.RequestSpecification
    • params

      public io.restassured.specification.RequestSpecification params(Map<String,?> parametersMap)
      Specified by:
      params in interface io.restassured.specification.RequestSpecification
    • param

      public io.restassured.specification.RequestSpecification param(String parameterName, Object... parameterValues)
      Specified by:
      param in interface io.restassured.specification.RequestSpecification
    • param

      public io.restassured.specification.RequestSpecification param(String parameterName, Collection<?> parameterValues)
      Specified by:
      param in interface io.restassured.specification.RequestSpecification
    • queryParams

      public io.restassured.specification.RequestSpecification queryParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
      Specified by:
      queryParams in interface io.restassured.specification.RequestSpecification
    • queryParams

      public io.restassured.specification.RequestSpecification queryParams(Map<String,?> parametersMap)
      Specified by:
      queryParams in interface io.restassured.specification.RequestSpecification
    • queryParam

      public io.restassured.specification.RequestSpecification queryParam(String parameterName, Object... parameterValues)
      Specified by:
      queryParam in interface io.restassured.specification.RequestSpecification
    • queryParam

      public io.restassured.specification.RequestSpecification queryParam(String parameterName, Collection<?> parameterValues)
      Specified by:
      queryParam in interface io.restassured.specification.RequestSpecification
    • formParams

      public io.restassured.specification.RequestSpecification formParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
      Specified by:
      formParams in interface io.restassured.specification.RequestSpecification
    • formParams

      public io.restassured.specification.RequestSpecification formParams(Map<String,?> parametersMap)
      Specified by:
      formParams in interface io.restassured.specification.RequestSpecification
    • formParam

      public io.restassured.specification.RequestSpecification formParam(String parameterName, Object... parameterValues)
      Specified by:
      formParam in interface io.restassured.specification.RequestSpecification
    • formParam

      public io.restassured.specification.RequestSpecification formParam(String parameterName, Collection<?> parameterValues)
      Specified by:
      formParam in interface io.restassured.specification.RequestSpecification
    • pathParam

      public io.restassured.specification.RequestSpecification pathParam(String parameterName, Object parameterValue)
      Specified by:
      pathParam in interface io.restassured.specification.RequestSpecification
    • pathParams

      public io.restassured.specification.RequestSpecification pathParams(String firstParameterName, Object firstParameterValue, Object... parameterNameValuePairs)
      Specified by:
      pathParams in interface io.restassured.specification.RequestSpecification
    • pathParams

      public io.restassured.specification.RequestSpecification pathParams(Map<String,?> parameterNameValuePairs)
      Specified by:
      pathParams in interface io.restassured.specification.RequestSpecification
    • getCookies

      public io.restassured.http.Cookies getCookies()
      Specified by:
      getCookies in interface io.restassured.specification.QueryableRequestSpecification
    • cookies

      public io.restassured.specification.RequestSpecification cookies(Map<String,?> cookies)
      Specified by:
      cookies in interface io.restassured.specification.RequestSpecification
    • cookies

      public io.restassured.specification.RequestSpecification cookies(io.restassured.http.Cookies cookies)
      Specified by:
      cookies in interface io.restassured.specification.RequestSpecification
    • cookie

      public io.restassured.specification.RequestSpecification cookie(String cookieName, Object value, Object... additionalValues)
      Specified by:
      cookie in interface io.restassured.specification.RequestSpecification
    • cookie

      public io.restassured.specification.RequestSpecification cookie(String cookieName)
      Specified by:
      cookie in interface io.restassured.specification.RequestSpecification
    • cookie

      public io.restassured.specification.RequestSpecification cookie(io.restassured.http.Cookie cookie)
      Specified by:
      cookie in interface io.restassured.specification.RequestSpecification
    • cookies

      public io.restassured.specification.RequestSpecification cookies(String firstCookieName, Object firstCookieValue, Object... cookieNameValuePairs)
      Specified by:
      cookies in interface io.restassured.specification.RequestSpecification
    • serializeIfNeeded

      protected String serializeIfNeeded(Object object)
    • keyStore

      public io.restassured.specification.RequestSpecification keyStore(String pathToJks, String password)
      Specified by:
      keyStore in interface io.restassured.specification.RequestSpecification
    • keyStore

      public io.restassured.specification.RequestSpecification keyStore(File pathToJks, String password)
      Specified by:
      keyStore in interface io.restassured.specification.RequestSpecification
    • trustStore

      public io.restassured.specification.RequestSpecification trustStore(KeyStore trustStore)
      Specified by:
      trustStore in interface io.restassured.specification.RequestSpecification
    • relaxedHTTPSValidation

      public io.restassured.specification.RequestSpecification relaxedHTTPSValidation()
      Specified by:
      relaxedHTTPSValidation in interface io.restassured.specification.RequestSpecification
    • relaxedHTTPSValidation

      public io.restassured.specification.RequestSpecification relaxedHTTPSValidation(String protocol)
      Specified by:
      relaxedHTTPSValidation in interface io.restassured.specification.RequestSpecification
    • authentication

      public io.restassured.specification.AuthenticationSpecification authentication()
    • auth

      public io.restassured.specification.AuthenticationSpecification auth()
      Specified by:
      auth in interface io.restassured.specification.RequestSpecification
    • setAuthenticationScheme

      protected void setAuthenticationScheme(io.restassured.authentication.AuthenticationScheme scheme)
      Method created ONLY for using in groovy (rest assured internals)
    • setauthenticationScheme

      protected io.restassured.config.RestAssuredConfig setauthenticationScheme()
      Method created ONLY for using in groovy (rest assured internals)
    • getFilters

      protected List<io.restassured.filter.Filter> getFilters()
      Method created ONLY for using in groovy (rest assured internals)
    • getfilters

      protected List<io.restassured.filter.Filter> getfilters()
      Method created ONLY for using in groovy (rest assured internals)
    • config

      public io.restassured.specification.RequestSpecification config(io.restassured.config.RestAssuredConfig config)
      Specified by:
      config in interface io.restassured.specification.RequestSpecification
    • getConfig

      public io.restassured.config.RestAssuredConfig getConfig()
      Specified by:
      getConfig in interface io.restassured.specification.QueryableRequestSpecification
    • baseUri

      public io.restassured.specification.RequestSpecification baseUri(String baseUri)
      Specified by:
      baseUri in interface io.restassured.specification.RequestSpecification
    • basePath

      public io.restassured.specification.RequestSpecification basePath(String basePath)
      Specified by:
      basePath in interface io.restassured.specification.RequestSpecification
    • sessionId

      public io.restassured.specification.RequestSpecification sessionId(String sessionIdValue)
      Specified by:
      sessionId in interface io.restassured.specification.RequestSpecification
    • sessionId

      public io.restassured.specification.RequestSpecification sessionId(String sessionIdName, String sessionIdValue)
      Specified by:
      sessionId in interface io.restassured.specification.RequestSpecification
    • urlEncodingEnabled

      public io.restassured.specification.RequestSpecification urlEncodingEnabled(boolean isEnabled)
      Specified by:
      urlEncodingEnabled in interface io.restassured.specification.RequestSpecification
    • port

      public io.restassured.specification.RequestSpecification port(int port)
      Specified by:
      port in interface io.restassured.specification.RequestSpecification
    • spec

      public io.restassured.specification.RequestSpecification spec(io.restassured.specification.RequestSpecification requestSpecificationToMerge)
      Specified by:
      spec in interface io.restassured.specification.RequestSpecification
    • setRestReportingHelper

      public void setRestReportingHelper(RestReportingHelper helper)
    • response

      public io.restassured.specification.ResponseSpecification response()
      Specified by:
      response in interface io.restassured.specification.RequestSpecification
    • and

      public io.restassured.specification.RequestSpecification and()
      Specified by:
      and in interface io.restassured.specification.RequestSpecification
    • with

      public io.restassured.specification.RequestSpecification with()
      Specified by:
      with in interface io.restassured.specification.RequestSpecification
    • then

      public io.restassured.specification.ResponseSpecification then()
      Specified by:
      then in interface io.restassured.specification.RequestSpecification
    • expect

      public io.restassured.specification.ResponseSpecification expect()
      Specified by:
      expect in interface io.restassured.specification.RequestSpecification
    • when

      public io.restassured.specification.RequestSpecification when()
      Specified by:
      when in interface io.restassured.specification.RequestSpecification
    • given

      public io.restassured.specification.RequestSpecification given()
      Specified by:
      given in interface io.restassured.specification.RequestSpecification
    • that

      public io.restassured.specification.RequestSpecification that()
      Specified by:
      that in interface io.restassured.specification.RequestSpecification
    • request

      public io.restassured.specification.RequestSpecification request()
      Specified by:
      request in interface io.restassured.specification.RequestSpecification
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • check

      protected io.restassured.specification.ResponseSpecification check(io.restassured.specification.ResponseSpecification specification)
    • decorate

      protected io.restassured.specification.ResponseSpecification decorate(io.restassured.specification.ResponseSpecification specification)
    • decorate

      protected ResponseDecorated decorate(io.restassured.response.Response response)
    • getCore

      public io.restassured.internal.RequestSpecificationImpl getCore()
      Method created for using in tests
    • setResponseSpecification

      protected void setResponseSpecification(io.restassured.specification.ResponseSpecification specification)
      Method created for using ONLY in groovy (rest assured internals)
    • setresponseSpecification

      protected void setresponseSpecification(io.restassured.specification.ResponseSpecification specification)
      Method created for using ONLY in groovy (rest assured internals)
    • getRestAssuredConfig

      protected io.restassured.config.RestAssuredConfig getRestAssuredConfig()
      Method created for using ONLY in groovy (rest assured internals)
    • getrestAssuredConfig

      protected io.restassured.config.RestAssuredConfig getrestAssuredConfig()
      Method created for using ONLY in groovy (rest assured internals)