Package com.teamdev.jxbrowser.net
Interface MultipartFormData
- All Superinterfaces:
UploadData
An upload data of the
multipart/form-data content type.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder ofMultipartFormData.static interfaceA key-value pair that represents a segment of a multi-part form data. -
Method Summary
Modifier and TypeMethodDescriptiondefault byte[]bytes()Returns an array containing the upload data bytes of the associated URL request.default ContentTypeReturns the content type of this upload data as specified in theContent-Typeheader.default List<MultipartFormData.Pair>data()Returns an immutable list of the key-value pairs each representing a segment of a multi-part form data or an empty list if the form does not contain any data.static MultipartFormData.Builder
-
Method Details
-
newBuilder
-
data
Returns an immutable list of the key-value pairs each representing a segment of a multi-part form data or an empty list if the form does not contain any data. -
bytes
default byte[] bytes()Description copied from interface:UploadDataReturns an array containing the upload data bytes of the associated URL request.If the upload data is constructed manually and is not associated with a URL request, returns an empty array.
- Specified by:
bytesin interfaceUploadData
-
contentType
Description copied from interface:UploadDataReturns the content type of this upload data as specified in theContent-Typeheader.If the upload data is constructed manually, the
Content-Typeheader will be created after it is passed to the Chromium engine. Thus, the returnedContentTypeobject will not contain meaningful values in this case.- Specified by:
contentTypein interfaceUploadData
-