Package io.qameta.allure.http
Record Class HttpExchangeRequest
java.lang.Object
java.lang.Record
io.qameta.allure.http.HttpExchangeRequest
- Record Components:
method- the HTTP methodurl- the request URLhttpVersion- the HTTP version- the request cookiesheaders- the request headersquery- the request query valuesbody- the request bodytrailers- the request trailers
public record HttpExchangeRequest(String method, String url, String httpVersion, List<HttpExchangeCookie> cookies, List<HttpExchangeNameValue> headers, List<HttpExchangeNameValue> query, HttpExchangeBody body, List<HttpExchangeNameValue> trailers)
extends Record
HTTP request captured in an exchange attachment.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpExchangeRequest(String method, String url, String httpVersion, List<HttpExchangeCookie> cookies, List<HttpExchangeNameValue> headers, List<HttpExchangeNameValue> query, HttpExchangeBody body, List<HttpExchangeNameValue> trailers) Creates an instance of aHttpExchangeRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.static HttpExchangeRequest.Buildercookies()Returns the value of thecookiesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.Returns the value of thehttpVersionrecord component.method()Returns the value of themethodrecord component.query()Returns the value of thequeryrecord component.final StringtoString()Returns a string representation of this record class.trailers()Returns the value of thetrailersrecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
HttpExchangeRequest
public HttpExchangeRequest(String method, String url, String httpVersion, List<HttpExchangeCookie> cookies, List<HttpExchangeNameValue> headers, List<HttpExchangeNameValue> query, HttpExchangeBody body, List<HttpExchangeNameValue> trailers) Creates an instance of aHttpExchangeRequestrecord class.- Parameters:
method- the value for themethodrecord componenturl- the value for theurlrecord componenthttpVersion- the value for thehttpVersionrecord componentcookies- the value for thecookiesrecord componentheaders- the value for theheadersrecord componentquery- the value for thequeryrecord componentbody- the value for thebodyrecord componenttrailers- the value for thetrailersrecord component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
httpVersion
Returns the value of thehttpVersionrecord component.- Returns:
- the value of the
httpVersionrecord component
-
cookies
Returns the value of thecookiesrecord component.- Returns:
- the value of the
cookiesrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
trailers
Returns the value of thetrailersrecord component.- Returns:
- the value of the
trailersrecord component
-