Interface Multipart.BodyPart
- All Superinterfaces:
Multipart.BodyPart
- All Known Subinterfaces:
Multipart.BodyPart$.Strict
- All Known Implementing Classes:
Multipart.ByteRanges$.BodyPart,Multipart.FormData$.BodyPart,Multipart.General$.BodyPart
- Enclosing interface:
- Multipart
The general model for a single part of a multipart message.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.Multipart.BodyPart
Multipart.BodyPart.Strict -
Method Summary
Modifier and TypeMethodDescriptionscala.Option<Content$minusDisposition>The potentially present {@link <code>Content-Disposition</code>} header.The parameters of the potentially present {@link <code>Content-Disposition</code>} header.scala.Option<ContentDispositionType>Thepekko.http.scaladsl.model.headers.ContentDispositionTypeof the potentially present {@link <code>Content-Disposition</code>} header.entity()The entity of the part.Java APIJava APIJava APIJava APIJava APIscala.collection.immutable.Seq<HttpHeader>headers()The headers the part carries.CompletionStage<? extends Multipart.BodyPart.Strict>toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java APIscala.concurrent.Future<Multipart.BodyPart.Strict>toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
-
Method Details
-
entity
BodyPartEntity entity()The entity of the part.- Returns:
- (undocumented)
-
headers
scala.collection.immutable.Seq<HttpHeader> headers()The headers the part carries.- Returns:
- (undocumented)
-
contentDispositionHeader
scala.Option<Content$minusDisposition> contentDispositionHeader()The potentially present {@link <code>Content-Disposition</code>} header.- Returns:
- (undocumented)
-
dispositionParams
The parameters of the potentially present {@link <code>Content-Disposition</code>} header. Returns an empty map if no such header is present.- Returns:
- (undocumented)
-
dispositionType
scala.Option<ContentDispositionType> dispositionType()Thepekko.http.scaladsl.model.headers.ContentDispositionTypeof the potentially present {@link <code>Content-Disposition</code>} header.- Returns:
- (undocumented)
-
toStrict
scala.concurrent.Future<Multipart.BodyPart.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) -
getEntity
BodyPartEntity getEntity()Java API- Specified by:
getEntityin interfaceMultipart.BodyPart
-
getHeaders
Iterable<HttpHeader> getHeaders()Java API- Specified by:
getHeadersin interfaceMultipart.BodyPart
-
getContentDispositionHeader
Optional<ContentDisposition> getContentDispositionHeader()Java API- Specified by:
getContentDispositionHeaderin interfaceMultipart.BodyPart
-
getDispositionParams
Java API- Specified by:
getDispositionParamsin interfaceMultipart.BodyPart
-
getDispositionType
Optional<ContentDispositionType> getDispositionType()Java API- Specified by:
getDispositionTypein interfaceMultipart.BodyPart
-
toStrict
CompletionStage<? extends Multipart.BodyPart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java API- Specified by:
toStrictin interfaceMultipart.BodyPart
-