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()TheContentDispositionTypeof the potentially present {@linkContent-Disposition} header.BodyPartEntityentity()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 APIBodyPartEntitygetEntity()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()
TheContentDispositionTypeof 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:
getEntityin interfaceMultipart.BodyPart
-
getHeaders
java.lang.Iterable<HttpHeader> getHeaders()
Java API- Specified by:
getHeadersin interfaceMultipart.BodyPart
-
getContentDispositionHeader
java.util.Optional<ContentDisposition> getContentDispositionHeader()
Java API- Specified by:
getContentDispositionHeaderin interfaceMultipart.BodyPart
-
getDispositionParams
java.util.Map<java.lang.String,java.lang.String> getDispositionParams()
Java API- Specified by:
getDispositionParamsin interfaceMultipart.BodyPart
-
getDispositionType
java.util.Optional<ContentDispositionType> getDispositionType()
Java API- Specified by:
getDispositionTypein interfaceMultipart.BodyPart
-
toStrict
java.util.concurrent.CompletionStage<? extends Multipart.BodyPart.Strict> toStrict(long timeoutMillis, akka.stream.Materializer materializer)
Java API- Specified by:
toStrictin interfaceMultipart.BodyPart
-
-