Package com.restfb.request
Class MultipartFormBodyPublisher
java.lang.Object
com.restfb.request.MultipartFormBodyPublisher
- All Implemented Interfaces:
Closeable,AutoCloseable
Writes multipart/form-data requests to a temporary file and exposes them as a BodyPublisher.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachments(List<BinaryAttachment> attachments) java.net.http.HttpRequest.BodyPublisherbuild()voidclose()
-
Constructor Details
-
MultipartFormBodyPublisher
- Throws:
IOException
-
-
Method Details
-
addAttachments
- Throws:
IOException
-
build
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-