public static interface Multipart.BodyPart extends Multipart.BodyPart
Multipart.BodyPart.Strict
Modifier and Type | Method and Description |
---|---|
scala.Option<Content$minusDisposition> |
contentDispositionHeader()
The potentially present
Content-Disposition header. |
scala.collection.immutable.Map<java.lang.String,java.lang.String> |
dispositionParams()
The parameters of the potentially present
Content-Disposition header. |
scala.Option<ContentDispositionType> |
dispositionType()
The
pekko.http.scaladsl.model.headers.ContentDispositionType of the potentially present Content-Disposition header. |
BodyPartEntity |
entity()
The entity of the part.
|
java.util.Optional<ContentDisposition> |
getContentDispositionHeader()
Java API
|
java.util.Map<java.lang.String,java.lang.String> |
getDispositionParams()
Java API
|
java.util.Optional<ContentDispositionType> |
getDispositionType()
Java API
|
BodyPartEntity |
getEntity()
Java API
|
java.lang.Iterable<HttpHeader> |
getHeaders()
Java API
|
scala.collection.immutable.Seq<HttpHeader> |
headers()
The headers the part carries.
|
scala.concurrent.Future<Multipart.BodyPart.Strict> |
toStrict(scala.concurrent.duration.FiniteDuration timeout,
org.apache.pekko.stream.Materializer fm) |
java.util.concurrent.CompletionStage<? extends Multipart.BodyPart.Strict> |
toStrict(long timeoutMillis,
org.apache.pekko.stream.Materializer materializer)
Java API
|
BodyPartEntity entity()
scala.collection.immutable.Seq<HttpHeader> headers()
scala.Option<Content$minusDisposition> contentDispositionHeader()
Content-Disposition
header.scala.collection.immutable.Map<java.lang.String,java.lang.String> dispositionParams()
Content-Disposition
header.
Returns an empty map if no such header is present.scala.Option<ContentDispositionType> dispositionType()
pekko.http.scaladsl.model.headers.ContentDispositionType
of the potentially present Content-Disposition
header.scala.concurrent.Future<Multipart.BodyPart.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
BodyPartEntity getEntity()
getEntity
in interface Multipart.BodyPart
java.lang.Iterable<HttpHeader> getHeaders()
getHeaders
in interface Multipart.BodyPart
java.util.Optional<ContentDisposition> getContentDispositionHeader()
getContentDispositionHeader
in interface Multipart.BodyPart
java.util.Map<java.lang.String,java.lang.String> getDispositionParams()
getDispositionParams
in interface Multipart.BodyPart
java.util.Optional<ContentDispositionType> getDispositionType()
getDispositionType
in interface Multipart.BodyPart
java.util.concurrent.CompletionStage<? extends Multipart.BodyPart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)
toStrict
in interface Multipart.BodyPart