Package io.qameta.allure.http
Record Class HttpExchangeInformationalResponse
java.lang.Object
java.lang.Record
io.qameta.allure.http.HttpExchangeInformationalResponse
- Record Components:
status- the status codestatusText- the status textheaders- the response headers
public record HttpExchangeInformationalResponse(Integer status, String statusText, List<HttpExchangeNameValue> headers)
extends Record
Informational HTTP response captured before a final response.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpExchangeInformationalResponse(Integer status, String statusText, List<HttpExchangeNameValue> headers) Creates an instance of aHttpExchangeInformationalResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.status()Returns the value of thestatusrecord component.Returns the value of thestatusTextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HttpExchangeInformationalResponse
public HttpExchangeInformationalResponse(Integer status, String statusText, List<HttpExchangeNameValue> headers) Creates an instance of aHttpExchangeInformationalResponserecord class.- Parameters:
status- the value for thestatusrecord componentstatusText- the value for thestatusTextrecord componentheaders- the value for theheadersrecord component
-
-
Method Details
-
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). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
statusText
Returns the value of thestatusTextrecord component.- Returns:
- the value of the
statusTextrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-