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
public static interface Multipart.BodyPart extends Multipart.BodyPart
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description scala.Option<Content$minusDisposition>
contentDispositionHeader()
The potentially present {@linkContent-Disposition
} header.scala.collection.immutable.Map<java.lang.String,java.lang.String>
dispositionParams()
The parameters of the potentially present {@linkContent-Disposition
} header.scala.Option<ContentDispositionType>
dispositionType()
TheContentDispositionType
of the potentially present {@linkContent-Disposition
} header.BodyPartEntity
entity()
The entity of the part.java.util.Optional<ContentDisposition>
getContentDispositionHeader()
Java APIjava.util.Map<java.lang.String,java.lang.String>
getDispositionParams()
Java APIjava.util.Optional<ContentDispositionType>
getDispositionType()
Java APIBodyPartEntity
getEntity()
Java APIjava.lang.Iterable<HttpHeader>
getHeaders()
Java APIscala.collection.immutable.Seq<HttpHeader>
headers()
The headers the part carries.java.util.concurrent.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 Detail
-
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 {@linkContent-Disposition
} header.- Returns:
- (undocumented)
-
dispositionParams
scala.collection.immutable.Map<java.lang.String,java.lang.String> dispositionParams()
The parameters of the potentially present {@linkContent-Disposition
} header. Returns an empty map if no such header is present.- Returns:
- (undocumented)
-
dispositionType
scala.Option<ContentDispositionType> dispositionType()
TheContentDispositionType
of the potentially present {@linkContent-Disposition
} 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
java.lang.Iterable<HttpHeader> getHeaders()
Java API- Specified by:
getHeaders
in interfaceMultipart.BodyPart
-
getContentDispositionHeader
java.util.Optional<ContentDisposition> getContentDispositionHeader()
Java API- Specified by:
getContentDispositionHeader
in interfaceMultipart.BodyPart
-
getDispositionParams
java.util.Map<java.lang.String,java.lang.String> getDispositionParams()
Java API- Specified by:
getDispositionParams
in interfaceMultipart.BodyPart
-
getDispositionType
java.util.Optional<ContentDispositionType> getDispositionType()
Java API- Specified by:
getDispositionType
in interfaceMultipart.BodyPart
-
toStrict
java.util.concurrent.CompletionStage<? extends Multipart.BodyPart.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Java API- Specified by:
toStrict
in interfaceMultipart.BodyPart
-
-