Package io.qameta.allure.http
Class HttpExchange.Builder
java.lang.Object
io.qameta.allure.http.HttpExchange.Builder
- Enclosing class:
HttpExchange
Builder for
HttpExchange.-
Method Summary
Modifier and TypeMethodDescriptionbuild()error(HttpExchangeError error) redactCookie(String name) redactCookies(Collection<String> names) redactFormParameter(String name) redactFormParameters(Collection<String> names) redactHeader(String name) redactHeaders(Collection<String> names) redactQueryParameter(String name) redactQueryParameters(Collection<String> names) request(HttpExchangeRequest request) Sets a captured request that will be redacted and truncated when the exchange is built.Creates and sets a request with the supplied method and URL.request(String method, String url, Consumer<HttpExchangeRequest.Builder> configure) Creates, configures, and sets a request with the supplied method and URL.response(HttpExchangeResponse response) Sets a captured response that will be redacted and truncated when the exchange is built.response(Consumer<HttpExchangeResponse.Builder> configure) Creates, configures, and sets a response.setError(HttpExchangeError error) setMaxBodySize(long maxBodySize) setRequest(HttpExchangeRequest request) Sets a captured request that will be redacted and truncated when the exchange is built.setResponse(HttpExchangeResponse response) Sets a captured response that will be redacted and truncated when the exchange is built.
-
Method Details
-
request
Sets a captured request that will be redacted and truncated when the exchange is built.- Parameters:
request- the captured request- Returns:
- this builder
-
request
Creates and sets a request with the supplied method and URL.- Parameters:
method- the request methodurl- the request URL- Returns:
- this builder
-
request
public HttpExchange.Builder request(String method, String url, Consumer<HttpExchangeRequest.Builder> configure) Creates, configures, and sets a request with the supplied method and URL.- Parameters:
method- the request methodurl- the request URLconfigure- the request builder customizer- Returns:
- this builder
-
setRequest
Sets a captured request that will be redacted and truncated when the exchange is built.- Parameters:
request- the captured request- Returns:
- this builder
-
response
Sets a captured response that will be redacted and truncated when the exchange is built.- Parameters:
response- the captured response- Returns:
- this builder
-
response
Creates, configures, and sets a response.- Parameters:
configure- the response builder customizer- Returns:
- this builder
-
setResponse
Sets a captured response that will be redacted and truncated when the exchange is built.- Parameters:
response- the captured response- Returns:
- this builder
-
error
-
setError
-
start
-
setStart
-
stop
-
setStop
-
redactHeader
-
redactHeaders
-
clearRedactedHeaders
-
redactCookie
-
redactCookies
-
redactQueryParameter
-
redactQueryParameters
-
redactFormParameter
-
redactFormParameters
-
setMaxBodySize
-
build
-