Package akka.http.scaladsl.model
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 akka.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>
TheContentDispositionType
of 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, akka.stream.Materializer materializer) Java APIscala.concurrent.Future<Multipart.BodyPart.Strict>
toStrict
(scala.concurrent.duration.FiniteDuration timeout, akka.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()TheContentDispositionType
of the potentially present {@link <code>Content-Disposition</code>} header.- Returns:
- (undocumented)
-
toStrict
scala.concurrent.Future<Multipart.BodyPart.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, akka.stream.Materializer fm) -
getEntity
BodyPartEntity getEntity()Java API- Specified by:
getEntity
in interfaceMultipart.BodyPart
-
getHeaders
Iterable<HttpHeader> getHeaders()Java API- Specified by:
getHeaders
in interfaceMultipart.BodyPart
-
getContentDispositionHeader
Optional<ContentDisposition> getContentDispositionHeader()Java API- Specified by:
getContentDispositionHeader
in interfaceMultipart.BodyPart
-
getDispositionParams
Java API- Specified by:
getDispositionParams
in interfaceMultipart.BodyPart
-
getDispositionType
Optional<ContentDispositionType> getDispositionType()Java API- Specified by:
getDispositionType
in interfaceMultipart.BodyPart
-
toStrict
CompletionStage<? extends Multipart.BodyPart.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer) Java API- Specified by:
toStrict
in interfaceMultipart.BodyPart
-