Record Class UiApiRequest.MultipartFile
java.lang.Object
java.lang.Record
com.kingsrook.qqq.middleware.javalin.specs.invoke.UiApiRequest.MultipartFile
- Enclosing class:
UiApiRequest
public static record UiApiRequest.MultipartFile(String fieldName, String fileName, String contentType, Supplier<InputStream> content)
extends Record
One file part. The supplier must return a fresh stream for each HTTP attempt.
-
Constructor Summary
ConstructorsConstructorDescriptionMultipartFile(String fieldName, String fileName, String contentType, Supplier<InputStream> content) Creates an instance of aMultipartFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.Returns the value of thecontentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefieldNamerecord component.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MultipartFile
public MultipartFile(String fieldName, String fileName, String contentType, Supplier<InputStream> content) Creates an instance of aMultipartFilerecord class.- Parameters:
fieldName- the value for thefieldNamerecord componentfileName- the value for thefileNamerecord componentcontentType- the value for thecontentTyperecord componentcontent- the value for thecontentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
fieldName
Returns the value of thefieldNamerecord component.- Returns:
- the value of the
fieldNamerecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
contentType
Returns the value of thecontentTyperecord component.- Returns:
- the value of the
contentTyperecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-