public interface FilterableRequestSpecification extends QueryableRequestSpecification, RequestSpecification
| Modifier and Type | Method and Description |
|---|---|
FilterableRequestSpecification |
path(String path)
Set the request path of the request specification.
|
FilterableRequestSpecification |
removeCookie(Cookie cookie)
Remove a cookie
|
FilterableRequestSpecification |
removeCookie(String cookieName)
Remove a cookie with the given name.
|
FilterableRequestSpecification |
removeCookies()
Removed all defined cookies
|
FilterableRequestSpecification |
removeFormParam(String parameterName)
Remove a form parameter from the request.
|
FilterableRequestSpecification |
removeHeader(String headerName)
Remove a header with the given name.
|
FilterableRequestSpecification |
removeHeaders()
Removes all defined headers
|
FilterableRequestSpecification |
removeNamedPathParam(String parameterName)
Remove a named path parameter from the request.
|
FilterableRequestSpecification |
removeParam(String parameterName)
Remove a request parameter from the request.
|
FilterableRequestSpecification |
removePathParam(String parameterName)
Remove a path parameter from the request.
|
FilterableRequestSpecification |
removeQueryParam(String parameterName)
Remove a query parameter from the request.
|
FilterableRequestSpecification |
removeUnnamedPathParam(String parameterName)
Remove an unnamed path parameter from the request.
|
FilterableRequestSpecification |
removeUnnamedPathParamByValue(String parameterValue)
Remove the first unnamed path parameter from the request based on its value.
|
FilterableRequestSpecification |
replaceCookie(Cookie cookie)
Replace a cookie, if it doesn't exist then it will be added.
|
FilterableRequestSpecification |
replaceCookie(String cookieName,
String value)
Replace a cookie with the given name.
|
FilterableRequestSpecification |
replaceCookies(Cookies cookies)
Replace all defined cookies
|
FilterableRequestSpecification |
replaceHeader(String headerName,
String newValue)
Replace a header with the new value.
|
FilterableRequestSpecification |
replaceHeaders(Headers headers)
Replace all defined headers
|
getAuthenticationScheme, getBasePath, getBaseUri, getBody, getConfig, getContentType, getCookies, getDefinedFilters, getDerivedPath, getFormParams, getHeaders, getHttpClient, getMethod, getMultiPartParams, getNamedPathParams, getPathParamPlaceholders, getPathParams, getPort, getProxySpecification, getQueryParams, getRequestParams, getUndefinedPathParamPlaceholders, getUnnamedPathParams, getUnnamedPathParamValues, getURI, getUserDefinedPathaccept, accept, and, auth, basePath, baseUri, body, body, body, body, body, body, body, config, contentType, contentType, cookie, cookie, cookie, cookies, cookies, cookies, expect, filter, filters, 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, withdelete, delete, delete, delete, delete, get, get, get, get, get, head, head, head, head, head, options, options, options, options, options, patch, patch, patch, patch, patch, post, post, post, post, post, put, put, put, put, put, request, request, request, request, request, request, request, requestFilterableRequestSpecification path(String path)
get("/x");
You can change to path to "/y" instead using this method. This will result in a request that looks like this:
get("/y");
path - The pathFilterableRequestSpecification removeFormParam(String parameterName)
parameterName - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removePathParam(String parameterName)
parameterName - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removeNamedPathParam(String parameterName)
parameterName - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removeUnnamedPathParam(String parameterName)
parameterName - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removeUnnamedPathParamByValue(String parameterValue)
parameterValue - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removeParam(String parameterName)
parameterName - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removeQueryParam(String parameterName)
parameterName - The parameter keyFilterableRequestSpecification without the parameterFilterableRequestSpecification removeHeader(String headerName)
headerName - The header nameFilterableRequestSpecification without the specified headerFilterableRequestSpecification removeCookie(String cookieName)
cookieName - The cookie nameFilterableRequestSpecification without the specified cookieFilterableRequestSpecification removeCookie(Cookie cookie)
cookie - The cookieFilterableRequestSpecification without the specified cookieFilterableRequestSpecification replaceHeader(String headerName, String newValue)
headerName - The header name to replaceFilterableRequestSpecification with the replaced headerFilterableRequestSpecification replaceCookie(String cookieName, String value)
cookieName - The cookie nameFilterableRequestSpecification with the replaced cookieFilterableRequestSpecification replaceCookie(Cookie cookie)
cookie - The cookieFilterableRequestSpecification with the replaced cookieFilterableRequestSpecification replaceHeaders(Headers headers)
headers - The new headersFilterableRequestSpecification with the replaced headersFilterableRequestSpecification replaceCookies(Cookies cookies)
cookies - The new cookiesFilterableRequestSpecification with the replaced cookiesFilterableRequestSpecification removeHeaders()
FilterableRequestSpecification withoutFilterableRequestSpecification removeCookies()
FilterableRequestSpecification with the replaced cookiesCopyright © 2010–2022. All rights reserved.