Package com.teamdev.jxbrowser.net
Interface UploadData
- All Known Subinterfaces:
ByteData,FormData,MultipartFormData,TextData
public interface UploadData
A common interface that all upload data implementations must extend.
-
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.
-
Method Details
-
bytes
default byte[] bytes()Returns 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.
- Since:
- 7.19
-
contentType
Returns 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.- Since:
- 7.33
-