Package io.qameta.allure.http
Record Class HttpExchangeBodyPart
java.lang.Object
java.lang.Record
io.qameta.allure.http.HttpExchangeBodyPart
- Record Components:
name- the part namefileName- the part file nameheaders- the part headerscontentType- the part content typeencoding- the body encoding, eitherutf8orbase64value- the body valuesize- the original body sizetruncated- true when the body was truncated
public record HttpExchangeBodyPart(String name, String fileName, List<HttpExchangeNameValue> headers, String contentType, String encoding, String value, Long size, Boolean truncated)
extends Record
Multipart body part captured in an exchange attachment.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpExchangeBodyPart(String name, String fileName, List<HttpExchangeNameValue> headers, String contentType, String encoding, String value, Long size, Boolean truncated) Creates an instance of aHttpExchangeBodyPartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentTyperecord component.encoding()Returns the value of theencodingrecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.name()Returns the value of thenamerecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetruncatedrecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
HttpExchangeBodyPart
public HttpExchangeBodyPart(String name, String fileName, List<HttpExchangeNameValue> headers, String contentType, String encoding, String value, Long size, Boolean truncated) Creates an instance of aHttpExchangeBodyPartrecord class.- Parameters:
name- the value for thenamerecord componentfileName- the value for thefileNamerecord componentheaders- the value for theheadersrecord componentcontentType- the value for thecontentTyperecord componentencoding- the value for theencodingrecord componentvalue- the value for thevaluerecord componentsize- the value for thesizerecord componenttruncated- the value for thetruncatedrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
encoding
Returns the value of theencodingrecord component.- Returns:
- the value of the
encodingrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
truncated
Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-