Interface Multipart.FormData.BodyPart
- All Superinterfaces:
Multipart.BodyPart
- All Known Subinterfaces:
Multipart.FormData.BodyPart.Strict
- All Known Implementing Classes:
Multipart.FormData$.BodyPart,Multipart.FormData$.BodyPart$.Strict
- Enclosing interface:
- Multipart.FormData
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from interface org.apache.pekko.http.javadsl.model.Multipart.BodyPart
getContentDispositionHeader, getDispositionParams, getDispositionType, getEntity, getHeaders
-
Method Details
-
getName
String getName() -
getAdditionalDispositionParams
-
getAdditionalHeaders
Iterable<HttpHeader> getAdditionalHeaders() -
getFilename
-
getPercentDecodedFilename
The value of thefilenameContent-Disposition parameter, if available, percent-decoded as UTF-8.RFC 7578 allows senders to percent-encode non-ASCII filenames, e.g.
filename="caf%C3%A9.txt". Use this accessor only when clients are known to do so: a literal%is also valid in a filename. If the value is not valid percent-encoded UTF-8 (e.g.100%.txt), it is returned unchanged.The result is untrusted client input. Sanitize it before using it as a file system path.
-
toStrict
CompletionStage<Multipart.FormData.BodyPart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) - Specified by:
toStrictin interfaceMultipart.BodyPart
-