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 java.lang.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 io.restassured.internal.RequestSpecificationImpl
core
protected ReflectionHelper<io.restassured.internal.RequestSpecificationImpl>
helper
protected RestReportingHelper
reporting
-
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(java.lang.String mediaTypes)
io.restassured.specification.RequestSpecification
and()
io.restassured.specification.AuthenticationSpecification
auth()
io.restassured.specification.AuthenticationSpecification
authentication()
io.restassured.specification.RequestSpecification
basePath(java.lang.String basePath)
io.restassured.specification.RequestSpecification
baseUri(java.lang.String baseUri)
io.restassured.specification.RequestSpecification
body(byte[] body)
io.restassured.specification.RequestSpecification
body(java.io.File body)
io.restassured.specification.RequestSpecification
body(java.io.InputStream body)
io.restassured.specification.RequestSpecification
body(java.lang.Object object)
io.restassured.specification.RequestSpecification
body(java.lang.Object object, io.restassured.mapper.ObjectMapper mapper)
io.restassured.specification.RequestSpecification
body(java.lang.Object object, io.restassured.mapper.ObjectMapperType mapperType)
io.restassured.specification.RequestSpecification
body(java.lang.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(java.lang.String contentType)
io.restassured.specification.RequestSpecification
cookie(io.restassured.http.Cookie cookie)
io.restassured.specification.RequestSpecification
cookie(java.lang.String cookieName)
io.restassured.specification.RequestSpecification
cookie(java.lang.String cookieName, java.lang.Object value, java.lang.Object... additionalValues)
io.restassured.specification.RequestSpecification
cookies(io.restassured.http.Cookies cookies)
io.restassured.specification.RequestSpecification
cookies(java.lang.String firstCookieName, java.lang.Object firstCookieValue, java.lang.Object... cookieNameValuePairs)
io.restassured.specification.RequestSpecification
cookies(java.util.Map<java.lang.String,?> cookies)
protected ResponseDecorated
decorate(io.restassured.response.Response response)
protected io.restassured.specification.ResponseSpecification
decorate(io.restassured.specification.ResponseSpecification specification)
io.restassured.response.Response
delete()
io.restassured.response.Response
delete(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
delete(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
delete(java.net.URI uri)
io.restassured.response.Response
delete(java.net.URL url)
void
disableReporting()
boolean
equals(java.lang.Object obj)
protected io.restassured.response.Response
execute(net.serenitybdd.core.rest.RestMethod method, java.lang.String path, java.lang.Object... pathParams)
io.restassured.specification.ResponseSpecification
expect()
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(java.util.List<io.restassured.filter.Filter> filters)
Add list of filters that will be used in the requestio.restassured.specification.RequestSpecification
formParam(java.lang.String parameterName, java.lang.Object... parameterValues)
io.restassured.specification.RequestSpecification
formParam(java.lang.String parameterName, java.util.Collection<?> parameterValues)
io.restassured.specification.RequestSpecification
formParams(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)
io.restassured.specification.RequestSpecification
formParams(java.util.Map<java.lang.String,?> parametersMap)
io.restassured.response.Response
get()
io.restassured.response.Response
get(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
get(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
get(java.net.URI uri)
io.restassured.response.Response
get(java.net.URL url)
io.restassured.authentication.AuthenticationScheme
getAuthenticationScheme()
java.lang.String
getBasePath()
java.lang.String
getBaseUri()
<T> T
getBody()
io.restassured.config.RestAssuredConfig
getConfig()
java.lang.String
getContentType()
io.restassured.http.Cookies
getCookies()
io.restassured.internal.RequestSpecificationImpl
getCore()
Method created for using in testsjava.util.List<io.restassured.filter.Filter>
getDefinedFilters()
java.lang.String
getDerivedPath()
protected java.util.List<io.restassured.filter.Filter>
getfilters()
Method created ONLY for using in groovy (rest assured internals)protected java.util.List<io.restassured.filter.Filter>
getFilters()
Method created ONLY for using in groovy (rest assured internals)java.util.Map<java.lang.String,java.lang.String>
getFormParams()
io.restassured.http.Headers
getHeaders()
org.apache.http.client.HttpClient
getHttpClient()
io.restassured.response.Response
getLastResponse()
java.lang.String
getMethod()
java.util.List<io.restassured.specification.MultiPartSpecification>
getMultiPartParams()
java.util.Map<java.lang.String,java.lang.String>
getNamedPathParams()
java.util.List<java.lang.String>
getPathParamPlaceholders()
java.util.Map<java.lang.String,java.lang.String>
getPathParams()
int
getPort()
io.restassured.specification.ProxySpecification
getProxySpecification()
java.util.Map<java.lang.String,java.lang.String>
getQueryParams()
java.util.Map<java.lang.String,java.lang.String>
getRequestParams()
protected io.restassured.config.RestAssuredConfig
getrestAssuredConfig()
Method created for using ONLY in groovy (rest assured internals)protected io.restassured.config.RestAssuredConfig
getRestAssuredConfig()
Method created for using ONLY in groovy (rest assured internals)java.util.List<java.lang.String>
getUndefinedPathParamPlaceholders()
java.util.Map<java.lang.String,java.lang.String>
getUnnamedPathParams()
java.util.List<java.lang.String>
getUnnamedPathParamValues()
java.lang.String
getURI()
java.lang.String
getUserDefinedPath()
io.restassured.specification.RequestSpecification
given()
int
hashCode()
io.restassured.response.Response
head()
io.restassured.response.Response
head(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
head(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
head(java.net.URI uri)
io.restassured.response.Response
head(java.net.URL url)
io.restassured.specification.RequestSpecification
header(io.restassured.http.Header header)
io.restassured.specification.RequestSpecification
header(java.lang.String headerName, java.lang.Object headerValue, java.lang.Object... additionalHeaderValues)
io.restassured.specification.RequestSpecification
headers(io.restassured.http.Headers headers)
io.restassured.specification.RequestSpecification
headers(java.lang.String firstHeaderName, java.lang.Object firstHeaderValue, java.lang.Object... headerNameValuePairs)
io.restassured.specification.RequestSpecification
headers(java.util.Map<java.lang.String,?> headers)
protected java.util.Map<java.lang.String,java.lang.Object>
httpClientParams()
io.restassured.specification.RequestSpecification
keyStore(java.io.File pathToJks, java.lang.String password)
io.restassured.specification.RequestSpecification
keyStore(java.lang.String pathToJks, java.lang.String password)
io.restassured.specification.RequestLogSpecification
log()
protected io.restassured.internal.log.LogRepository
logRepository()
io.restassured.specification.RequestSpecification
multiPart(io.restassured.specification.MultiPartSpecification multiPartSpecification)
io.restassured.specification.RequestSpecification
multiPart(java.io.File file)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.io.File file)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.io.File file, java.lang.String mimeType)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.Object object)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.Object object, java.lang.String mimeType)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.String contentBody)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.String fileName, byte[] bytes)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.String fileName, byte[] bytes, java.lang.String mimeType)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.String fileName, java.io.InputStream stream)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.String fileName, java.io.InputStream stream, java.lang.String mimeType)
io.restassured.specification.RequestSpecification
multiPart(java.lang.String controlName, java.lang.String contentBody, java.lang.String mimeType)
io.restassured.response.Response
options()
io.restassured.response.Response
options(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
options(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
options(java.net.URI uri)
io.restassured.response.Response
options(java.net.URL url)
io.restassured.specification.RequestSpecification
param(java.lang.String parameterName, java.lang.Object... parameterValues)
io.restassured.specification.RequestSpecification
param(java.lang.String parameterName, java.util.Collection<?> parameterValues)
io.restassured.specification.RequestSpecification
params(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)
io.restassured.specification.RequestSpecification
params(java.util.Map<java.lang.String,?> parametersMap)
io.restassured.response.Response
patch()
io.restassured.response.Response
patch(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
patch(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
patch(java.net.URI uri)
io.restassured.response.Response
patch(java.net.URL url)
io.restassured.specification.RequestSpecification
pathParam(java.lang.String parameterName, java.lang.Object parameterValue)
io.restassured.specification.RequestSpecification
pathParams(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)
io.restassured.specification.RequestSpecification
pathParams(java.util.Map<java.lang.String,?> parameterNameValuePairs)
io.restassured.specification.RequestSpecification
port(int port)
io.restassured.response.Response
post()
io.restassured.response.Response
post(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
post(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
post(java.net.URI uri)
io.restassured.response.Response
post(java.net.URL url)
io.restassured.response.Response
put()
io.restassured.response.Response
put(java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
put(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)
io.restassured.response.Response
put(java.net.URI uri)
io.restassured.response.Response
put(java.net.URL url)
io.restassured.specification.RequestSpecification
queryParam(java.lang.String parameterName, java.lang.Object... parameterValues)
io.restassured.specification.RequestSpecification
queryParam(java.lang.String parameterName, java.util.Collection<?> parameterValues)
io.restassured.specification.RequestSpecification
queryParams(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)
io.restassured.specification.RequestSpecification
queryParams(java.util.Map<java.lang.String,?> parametersMap)
io.restassured.specification.RedirectSpecification
redirects()
io.restassured.specification.RequestSpecification
relaxedHTTPSValidation()
io.restassured.specification.RequestSpecification
relaxedHTTPSValidation(java.lang.String protocol)
io.restassured.specification.RequestSpecification
request()
io.restassured.response.Response
request(java.lang.String method, java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
request(java.lang.String method, java.net.URI uri)
io.restassured.response.Response
request(java.lang.String method, java.net.URL url)
io.restassured.response.Response
request(net.serenitybdd.core.rest.RestMethod method, java.lang.String path, java.lang.Object... pathParams)
io.restassured.response.Response
request(net.serenitybdd.core.rest.RestMethod method, java.net.URI uri)
io.restassured.response.Response
request(net.serenitybdd.core.rest.RestMethod method, java.net.URL url)
io.restassured.specification.ResponseSpecification
response()
protected java.lang.String
serializeIfNeeded(java.lang.Object object)
io.restassured.specification.RequestSpecification
sessionId(java.lang.String sessionIdValue)
io.restassured.specification.RequestSpecification
sessionId(java.lang.String sessionIdName, java.lang.String sessionIdValue)
protected io.restassured.config.RestAssuredConfig
setauthenticationScheme()
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
setRestReportingHelper(RestReportingHelper helper)
io.restassured.specification.RequestSpecification
spec(io.restassured.specification.RequestSpecification requestSpecificationToMerge)
io.restassured.specification.RequestSpecification
that()
io.restassured.specification.ResponseSpecification
then()
io.restassured.specification.RequestSpecification
trustStore(java.security.KeyStore trustStore)
io.restassured.specification.RequestSpecification
urlEncodingEnabled(boolean isEnabled)
io.restassured.specification.RequestSpecification
when()
io.restassured.specification.RequestSpecification
with()
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, 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, 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
-
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 interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
get
public io.restassured.response.Response get(java.net.URL url)- Specified by:
get
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
get
public io.restassured.response.Response get(java.lang.String path, java.lang.Object... pathParams)- Specified by:
get
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
request
public io.restassured.response.Response request(java.lang.String method, java.net.URI uri)- Specified by:
request
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
request
public io.restassured.response.Response request(java.lang.String method, java.net.URL url)- Specified by:
request
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
request
public io.restassured.response.Response request(net.serenitybdd.core.rest.RestMethod method, java.lang.String path, java.lang.Object... pathParams) -
request
public io.restassured.response.Response request(java.lang.String method, java.lang.String path, java.lang.Object... pathParams)- Specified by:
request
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
request
public io.restassured.response.Response request(net.serenitybdd.core.rest.RestMethod method, java.net.URI uri) -
request
public io.restassured.response.Response request(net.serenitybdd.core.rest.RestMethod method, java.net.URL url) -
get
public io.restassured.response.Response get(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
get
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
get
public io.restassured.response.Response get(java.net.URI uri)- Specified by:
get
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
post
public io.restassured.response.Response post()- Specified by:
post
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
post
public io.restassured.response.Response post(java.net.URL url)- Specified by:
post
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
post
public io.restassured.response.Response post(java.lang.String path, java.lang.Object... pathParams)- Specified by:
post
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
post
public io.restassured.response.Response post(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
post
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
post
public io.restassured.response.Response post(java.net.URI uri)- Specified by:
post
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
put
public io.restassured.response.Response put()- Specified by:
put
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
put
public io.restassured.response.Response put(java.net.URL url)- Specified by:
put
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
put
public io.restassured.response.Response put(java.net.URI uri)- Specified by:
put
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
put
public io.restassured.response.Response put(java.lang.String path, java.lang.Object... pathParams)- Specified by:
put
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
put
public io.restassured.response.Response put(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
put
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
delete
public io.restassured.response.Response delete()- Specified by:
delete
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
delete
public io.restassured.response.Response delete(java.net.URL url)- Specified by:
delete
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
delete
public io.restassured.response.Response delete(java.net.URI uri)- Specified by:
delete
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
delete
public io.restassured.response.Response delete(java.lang.String path, java.lang.Object... pathParams)- Specified by:
delete
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
delete
public io.restassured.response.Response delete(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
delete
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
head
public io.restassured.response.Response head()- Specified by:
head
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
head
public io.restassured.response.Response head(java.net.URL url)- Specified by:
head
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
head
public io.restassured.response.Response head(java.net.URI uri)- Specified by:
head
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
head
public io.restassured.response.Response head(java.lang.String path, java.lang.Object... pathParams)- Specified by:
head
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
head
public io.restassured.response.Response head(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
head
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
patch
public io.restassured.response.Response patch()- Specified by:
patch
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
patch
public io.restassured.response.Response patch(java.net.URL url)- Specified by:
patch
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
patch
public io.restassured.response.Response patch(java.net.URI uri)- Specified by:
patch
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
patch
public io.restassured.response.Response patch(java.lang.String path, java.lang.Object... pathParams)- Specified by:
patch
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
patch
public io.restassured.response.Response patch(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
patch
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
options
public io.restassured.response.Response options()- Specified by:
options
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
options
public io.restassured.response.Response options(java.lang.String path, java.lang.Object... pathParams)- Specified by:
options
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
options
public io.restassured.response.Response options(java.lang.String path, java.util.Map<java.lang.String,?> pathParams)- Specified by:
options
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
options
public io.restassured.response.Response options(java.net.URI uri)- Specified by:
options
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
options
public io.restassured.response.Response options(java.net.URL url)- Specified by:
options
in interfaceio.restassured.specification.RequestSenderOptions<io.restassured.response.Response>
-
execute
protected io.restassured.response.Response execute(net.serenitybdd.core.rest.RestMethod method, java.lang.String path, java.lang.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 interfaceio.restassured.specification.RequestSpecification
- Parameters:
filter
- The filter to add- Returns:
- the decorated request specification
-
filters
public io.restassured.specification.RequestSpecification filters(java.util.List<io.restassured.filter.Filter> filters)Add list of filters that will be used in the request- Specified by:
filters
in interfaceio.restassured.specification.RequestSpecification
- Parameters:
filters
- Filter list to add- Returns:
- the decorated request specification
-
getDefinedFilters
public java.util.List<io.restassured.filter.Filter> getDefinedFilters()- Specified by:
getDefinedFilters
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getContentType
public java.lang.String getContentType()- Specified by:
getContentType
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getProxySpecification
public io.restassured.specification.ProxySpecification getProxySpecification()- Specified by:
getProxySpecification
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getAuthenticationScheme
public io.restassured.authentication.AuthenticationScheme getAuthenticationScheme()- Specified by:
getAuthenticationScheme
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getBasePath
public java.lang.String getBasePath()- Specified by:
getBasePath
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getBaseUri
public java.lang.String getBaseUri()- Specified by:
getBaseUri
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getDerivedPath
public java.lang.String getDerivedPath()- Specified by:
getDerivedPath
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getUserDefinedPath
public java.lang.String getUserDefinedPath()- Specified by:
getUserDefinedPath
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getMethod
public java.lang.String getMethod()- Specified by:
getMethod
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getURI
public java.lang.String getURI()- Specified by:
getURI
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getPort
public int getPort()- Specified by:
getPort
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getRequestParams
public java.util.Map<java.lang.String,java.lang.String> getRequestParams()- Specified by:
getRequestParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getFormParams
public java.util.Map<java.lang.String,java.lang.String> getFormParams()- Specified by:
getFormParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getPathParams
public java.util.Map<java.lang.String,java.lang.String> getPathParams()- Specified by:
getPathParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getNamedPathParams
public java.util.Map<java.lang.String,java.lang.String> getNamedPathParams()- Specified by:
getNamedPathParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getUnnamedPathParams
public java.util.Map<java.lang.String,java.lang.String> getUnnamedPathParams()- Specified by:
getUnnamedPathParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getUnnamedPathParamValues
public java.util.List<java.lang.String> getUnnamedPathParamValues()- Specified by:
getUnnamedPathParamValues
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getQueryParams
public java.util.Map<java.lang.String,java.lang.String> getQueryParams()- Specified by:
getQueryParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getBody
public <T> T getBody()- Specified by:
getBody
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getHttpClient
public org.apache.http.client.HttpClient getHttpClient()- Specified by:
getHttpClient
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getUndefinedPathParamPlaceholders
public java.util.List<java.lang.String> getUndefinedPathParamPlaceholders()- Specified by:
getUndefinedPathParamPlaceholders
in interfaceio.restassured.specification.QueryableRequestSpecification
-
getPathParamPlaceholders
public java.util.List<java.lang.String> getPathParamPlaceholders()- Specified by:
getPathParamPlaceholders
in interfaceio.restassured.specification.QueryableRequestSpecification
-
log
public io.restassured.specification.RequestLogSpecification log()- Specified by:
log
in interfaceio.restassured.specification.RequestSpecification
-
logRepository
protected io.restassured.internal.log.LogRepository logRepository() -
redirects
public io.restassured.specification.RedirectSpecification redirects()- Specified by:
redirects
in interfaceio.restassured.specification.RequestSpecification
-
httpClientParams
protected java.util.Map<java.lang.String,java.lang.Object> httpClientParams() -
body
public io.restassured.specification.RequestSpecification body(java.lang.Object object)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
body
public io.restassured.specification.RequestSpecification body(java.lang.Object object, io.restassured.mapper.ObjectMapper mapper)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
body
public io.restassured.specification.RequestSpecification body(java.lang.Object object, io.restassured.mapper.ObjectMapperType mapperType)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
body
public io.restassured.specification.RequestSpecification body(java.lang.String body)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
body
public io.restassured.specification.RequestSpecification body(byte[] body)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
body
public io.restassured.specification.RequestSpecification body(java.io.File body)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
body
public io.restassured.specification.RequestSpecification body(java.io.InputStream body)- Specified by:
body
in interfaceio.restassured.specification.RequestSpecification
-
contentType
public io.restassured.specification.RequestSpecification contentType(io.restassured.http.ContentType contentType)- Specified by:
contentType
in interfaceio.restassured.specification.RequestSpecification
-
contentType
public io.restassured.specification.RequestSpecification contentType(java.lang.String contentType)- Specified by:
contentType
in interfaceio.restassured.specification.RequestSpecification
-
getHeaders
public io.restassured.http.Headers getHeaders()- Specified by:
getHeaders
in interfaceio.restassured.specification.QueryableRequestSpecification
-
headers
public io.restassured.specification.RequestSpecification headers(java.util.Map<java.lang.String,?> headers)- Specified by:
headers
in interfaceio.restassured.specification.RequestSpecification
-
headers
public io.restassured.specification.RequestSpecification headers(java.lang.String firstHeaderName, java.lang.Object firstHeaderValue, java.lang.Object... headerNameValuePairs)- Specified by:
headers
in interfaceio.restassured.specification.RequestSpecification
-
headers
public io.restassured.specification.RequestSpecification headers(io.restassured.http.Headers headers)- Specified by:
headers
in interfaceio.restassured.specification.RequestSpecification
-
header
public io.restassured.specification.RequestSpecification header(java.lang.String headerName, java.lang.Object headerValue, java.lang.Object... additionalHeaderValues)- Specified by:
header
in interfaceio.restassured.specification.RequestSpecification
-
header
public io.restassured.specification.RequestSpecification header(io.restassured.http.Header header)- Specified by:
header
in interfaceio.restassured.specification.RequestSpecification
-
accept
public io.restassured.specification.RequestSpecification accept(io.restassured.http.ContentType contentType)- Specified by:
accept
in interfaceio.restassured.specification.RequestSpecification
-
accept
public io.restassured.specification.RequestSpecification accept(java.lang.String mediaTypes)- Specified by:
accept
in interfaceio.restassured.specification.RequestSpecification
-
getMultiPartParams
public java.util.List<io.restassured.specification.MultiPartSpecification> getMultiPartParams()- Specified by:
getMultiPartParams
in interfaceio.restassured.specification.QueryableRequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(io.restassured.specification.MultiPartSpecification multiPartSpecification)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.io.File file, java.lang.String mimeType)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.Object object, java.lang.String mimeType)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.String fileName, byte[] bytes, java.lang.String mimeType)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.String fileName, java.io.InputStream stream, java.lang.String mimeType)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.String contentBody, java.lang.String mimeType)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.io.File file)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.io.File file)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.Object object)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.String fileName, byte[] bytes)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.String fileName, java.io.InputStream stream)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
multiPart
public io.restassured.specification.RequestSpecification multiPart(java.lang.String controlName, java.lang.String contentBody)- Specified by:
multiPart
in interfaceio.restassured.specification.RequestSpecification
-
params
public io.restassured.specification.RequestSpecification params(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)- Specified by:
params
in interfaceio.restassured.specification.RequestSpecification
-
params
public io.restassured.specification.RequestSpecification params(java.util.Map<java.lang.String,?> parametersMap)- Specified by:
params
in interfaceio.restassured.specification.RequestSpecification
-
param
public io.restassured.specification.RequestSpecification param(java.lang.String parameterName, java.lang.Object... parameterValues)- Specified by:
param
in interfaceio.restassured.specification.RequestSpecification
-
param
public io.restassured.specification.RequestSpecification param(java.lang.String parameterName, java.util.Collection<?> parameterValues)- Specified by:
param
in interfaceio.restassured.specification.RequestSpecification
-
queryParams
public io.restassured.specification.RequestSpecification queryParams(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)- Specified by:
queryParams
in interfaceio.restassured.specification.RequestSpecification
-
queryParams
public io.restassured.specification.RequestSpecification queryParams(java.util.Map<java.lang.String,?> parametersMap)- Specified by:
queryParams
in interfaceio.restassured.specification.RequestSpecification
-
queryParam
public io.restassured.specification.RequestSpecification queryParam(java.lang.String parameterName, java.lang.Object... parameterValues)- Specified by:
queryParam
in interfaceio.restassured.specification.RequestSpecification
-
queryParam
public io.restassured.specification.RequestSpecification queryParam(java.lang.String parameterName, java.util.Collection<?> parameterValues)- Specified by:
queryParam
in interfaceio.restassured.specification.RequestSpecification
-
formParams
public io.restassured.specification.RequestSpecification formParams(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)- Specified by:
formParams
in interfaceio.restassured.specification.RequestSpecification
-
formParams
public io.restassured.specification.RequestSpecification formParams(java.util.Map<java.lang.String,?> parametersMap)- Specified by:
formParams
in interfaceio.restassured.specification.RequestSpecification
-
formParam
public io.restassured.specification.RequestSpecification formParam(java.lang.String parameterName, java.lang.Object... parameterValues)- Specified by:
formParam
in interfaceio.restassured.specification.RequestSpecification
-
formParam
public io.restassured.specification.RequestSpecification formParam(java.lang.String parameterName, java.util.Collection<?> parameterValues)- Specified by:
formParam
in interfaceio.restassured.specification.RequestSpecification
-
pathParam
public io.restassured.specification.RequestSpecification pathParam(java.lang.String parameterName, java.lang.Object parameterValue)- Specified by:
pathParam
in interfaceio.restassured.specification.RequestSpecification
-
pathParams
public io.restassured.specification.RequestSpecification pathParams(java.lang.String firstParameterName, java.lang.Object firstParameterValue, java.lang.Object... parameterNameValuePairs)- Specified by:
pathParams
in interfaceio.restassured.specification.RequestSpecification
-
pathParams
public io.restassured.specification.RequestSpecification pathParams(java.util.Map<java.lang.String,?> parameterNameValuePairs)- Specified by:
pathParams
in interfaceio.restassured.specification.RequestSpecification
-
getCookies
public io.restassured.http.Cookies getCookies()- Specified by:
getCookies
in interfaceio.restassured.specification.QueryableRequestSpecification
-
cookies
public io.restassured.specification.RequestSpecification cookies(java.util.Map<java.lang.String,?> cookies)- Specified by:
cookies
in interfaceio.restassured.specification.RequestSpecification
-
cookies
public io.restassured.specification.RequestSpecification cookies(io.restassured.http.Cookies cookies)- Specified by:
cookies
in interfaceio.restassured.specification.RequestSpecification
-
cookie
public io.restassured.specification.RequestSpecification cookie(java.lang.String cookieName, java.lang.Object value, java.lang.Object... additionalValues)- Specified by:
cookie
in interfaceio.restassured.specification.RequestSpecification
-
cookie
public io.restassured.specification.RequestSpecification cookie(java.lang.String cookieName)- Specified by:
cookie
in interfaceio.restassured.specification.RequestSpecification
-
cookie
public io.restassured.specification.RequestSpecification cookie(io.restassured.http.Cookie cookie)- Specified by:
cookie
in interfaceio.restassured.specification.RequestSpecification
-
cookies
public io.restassured.specification.RequestSpecification cookies(java.lang.String firstCookieName, java.lang.Object firstCookieValue, java.lang.Object... cookieNameValuePairs)- Specified by:
cookies
in interfaceio.restassured.specification.RequestSpecification
-
serializeIfNeeded
protected java.lang.String serializeIfNeeded(java.lang.Object object) -
keyStore
public io.restassured.specification.RequestSpecification keyStore(java.lang.String pathToJks, java.lang.String password)- Specified by:
keyStore
in interfaceio.restassured.specification.RequestSpecification
-
keyStore
public io.restassured.specification.RequestSpecification keyStore(java.io.File pathToJks, java.lang.String password)- Specified by:
keyStore
in interfaceio.restassured.specification.RequestSpecification
-
trustStore
public io.restassured.specification.RequestSpecification trustStore(java.security.KeyStore trustStore)- Specified by:
trustStore
in interfaceio.restassured.specification.RequestSpecification
-
relaxedHTTPSValidation
public io.restassured.specification.RequestSpecification relaxedHTTPSValidation()- Specified by:
relaxedHTTPSValidation
in interfaceio.restassured.specification.RequestSpecification
-
relaxedHTTPSValidation
public io.restassured.specification.RequestSpecification relaxedHTTPSValidation(java.lang.String protocol)- Specified by:
relaxedHTTPSValidation
in interfaceio.restassured.specification.RequestSpecification
-
authentication
public io.restassured.specification.AuthenticationSpecification authentication() -
auth
public io.restassured.specification.AuthenticationSpecification auth()- Specified by:
auth
in interfaceio.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 java.util.List<io.restassured.filter.Filter> getFilters()Method created ONLY for using in groovy (rest assured internals) -
getfilters
protected java.util.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 interfaceio.restassured.specification.RequestSpecification
-
getConfig
public io.restassured.config.RestAssuredConfig getConfig()- Specified by:
getConfig
in interfaceio.restassured.specification.QueryableRequestSpecification
-
baseUri
public io.restassured.specification.RequestSpecification baseUri(java.lang.String baseUri)- Specified by:
baseUri
in interfaceio.restassured.specification.RequestSpecification
-
basePath
public io.restassured.specification.RequestSpecification basePath(java.lang.String basePath)- Specified by:
basePath
in interfaceio.restassured.specification.RequestSpecification
-
sessionId
public io.restassured.specification.RequestSpecification sessionId(java.lang.String sessionIdValue)- Specified by:
sessionId
in interfaceio.restassured.specification.RequestSpecification
-
sessionId
public io.restassured.specification.RequestSpecification sessionId(java.lang.String sessionIdName, java.lang.String sessionIdValue)- Specified by:
sessionId
in interfaceio.restassured.specification.RequestSpecification
-
urlEncodingEnabled
public io.restassured.specification.RequestSpecification urlEncodingEnabled(boolean isEnabled)- Specified by:
urlEncodingEnabled
in interfaceio.restassured.specification.RequestSpecification
-
port
public io.restassured.specification.RequestSpecification port(int port)- Specified by:
port
in interfaceio.restassured.specification.RequestSpecification
-
spec
public io.restassured.specification.RequestSpecification spec(io.restassured.specification.RequestSpecification requestSpecificationToMerge)- Specified by:
spec
in interfaceio.restassured.specification.RequestSpecification
-
setRestReportingHelper
-
response
public io.restassured.specification.ResponseSpecification response()- Specified by:
response
in interfaceio.restassured.specification.RequestSpecification
-
and
public io.restassured.specification.RequestSpecification and()- Specified by:
and
in interfaceio.restassured.specification.RequestSpecification
-
with
public io.restassured.specification.RequestSpecification with()- Specified by:
with
in interfaceio.restassured.specification.RequestSpecification
-
then
public io.restassured.specification.ResponseSpecification then()- Specified by:
then
in interfaceio.restassured.specification.RequestSpecification
-
expect
public io.restassured.specification.ResponseSpecification expect()- Specified by:
expect
in interfaceio.restassured.specification.RequestSpecification
-
when
public io.restassured.specification.RequestSpecification when()- Specified by:
when
in interfaceio.restassured.specification.RequestSpecification
-
given
public io.restassured.specification.RequestSpecification given()- Specified by:
given
in interfaceio.restassured.specification.RequestSpecification
-
that
public io.restassured.specification.RequestSpecification that()- Specified by:
that
in interfaceio.restassured.specification.RequestSpecification
-
request
public io.restassured.specification.RequestSpecification request()- Specified by:
request
in interfaceio.restassured.specification.RequestSpecification
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.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
-
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)
-