public abstract static class Multipart.FormData$.BodyPart extends java.lang.Object implements Multipart.BodyPart, Multipart.FormData.BodyPart
FormData
model.Multipart.FormData.BodyPart.Strict
Constructor and Description |
---|
BodyPart() |
Modifier and Type | Method and Description |
---|---|
abstract scala.collection.immutable.Map<java.lang.String,java.lang.String> |
additionalDispositionParams()
The Content-Disposition parameters, not including the
name parameter. |
abstract scala.collection.immutable.Seq<HttpHeader> |
additionalHeaders()
Part headers, not including the Content-Disposition header.
|
scala.Some<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.Some<ContentDispositionTypes.form$minusdata$> |
dispositionType()
The
pekko.http.scaladsl.model.headers.ContentDispositionType of the potentially present Content-Disposition header. |
scala.Option<java.lang.String> |
filename()
The value of the
filename Content-Disposition parameter, if available. |
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalDispositionParams()
Java API
|
java.lang.Iterable<HttpHeader> |
getAdditionalHeaders()
Java API
|
java.util.Optional<java.lang.String> |
getFilename()
Java API
|
java.lang.String |
getName()
Java API
|
scala.collection.immutable.Seq<HttpHeader> |
headers()
The headers the part carries.
|
abstract java.lang.String |
name()
The name of this part.
|
scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> |
toStrict(scala.concurrent.duration.FiniteDuration timeout,
org.apache.pekko.stream.Materializer fm) |
java.util.concurrent.CompletionStage<Multipart.FormData.BodyPart.Strict> |
toStrict(long timeoutMillis,
org.apache.pekko.stream.Materializer materializer)
Java API
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
entity, getContentDispositionHeader, getDispositionParams, getDispositionType, getEntity, getHeaders
public abstract java.lang.String name()
public abstract scala.collection.immutable.Map<java.lang.String,java.lang.String> additionalDispositionParams()
name
parameter.public abstract scala.collection.immutable.Seq<HttpHeader> additionalHeaders()
public scala.collection.immutable.Seq<HttpHeader> headers()
Multipart.BodyPart
public scala.Some<Content$minusDisposition> contentDispositionHeader()
Multipart.BodyPart
Content-Disposition
header.public scala.collection.immutable.Map<java.lang.String,java.lang.String> dispositionParams()
Multipart.BodyPart
Content-Disposition
header.
Returns an empty map if no such header is present.public scala.Some<ContentDispositionTypes.form$minusdata$> dispositionType()
Multipart.BodyPart
pekko.http.scaladsl.model.headers.ContentDispositionType
of the potentially present Content-Disposition
header.public scala.Option<java.lang.String> filename()
filename
Content-Disposition parameter, if available.public scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
public java.lang.String getName()
getName
in interface Multipart.FormData.BodyPart
public java.util.Map<java.lang.String,java.lang.String> getAdditionalDispositionParams()
getAdditionalDispositionParams
in interface Multipart.FormData.BodyPart
public java.lang.Iterable<HttpHeader> getAdditionalHeaders()
getAdditionalHeaders
in interface Multipart.FormData.BodyPart
public java.util.Optional<java.lang.String> getFilename()
getFilename
in interface Multipart.FormData.BodyPart
public java.util.concurrent.CompletionStage<Multipart.FormData.BodyPart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)
toStrict
in interface Multipart.BodyPart
toStrict
in interface Multipart.FormData.BodyPart