Class Multipart.FormData$.BodyPart
java.lang.Object
org.apache.pekko.http.scaladsl.model.Multipart.FormData$.BodyPart
- All Implemented Interfaces:
Multipart.BodyPart
,Multipart.FormData.BodyPart
,Multipart.BodyPart
- Enclosing class:
- Multipart.FormData$
public abstract static class Multipart.FormData$.BodyPart
extends Object
implements Multipart.BodyPart, Multipart.FormData.BodyPart
Body part of the
Multipart.FormData
model.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.Multipart.BodyPart
Multipart.BodyPart.Strict
Nested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.Multipart.FormData.BodyPart
Multipart.FormData.BodyPart.Strict
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Content-Disposition parameters, not including thename
parameter.abstract scala.collection.immutable.Seq<HttpHeader>
Part headers, not including the Content-Disposition header.scala.Some<Content$minusDisposition>
The potentially present {@link <code>Content-Disposition</code>} header.The parameters of the potentially present {@link <code>Content-Disposition</code>} header.scala.Some<ContentDispositionTypes.form$minusdata$>
Thepekko.http.scaladsl.model.headers.ContentDispositionType
of the potentially present {@link <code>Content-Disposition</code>} header.scala.Option<String>
filename()
The value of thefilename
Content-Disposition parameter, if available.Java APIJava APIJava APIgetName()
Java APIscala.collection.immutable.Seq<HttpHeader>
headers()
The headers the part carries.abstract String
name()
The name of this part.toStrict
(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java APIscala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.FormData.BodyPart.Strict>
toStrict
(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pekko.http.scaladsl.model.Multipart.BodyPart
entity, getContentDispositionHeader, getDispositionParams, getDispositionType, getEntity, getHeaders
-
Constructor Details
-
BodyPart
public BodyPart()
-
-
Method Details
-
name
The name of this part.- Returns:
- (undocumented)
-
additionalDispositionParams
The Content-Disposition parameters, not including thename
parameter.- Returns:
- (undocumented)
-
additionalHeaders
Part headers, not including the Content-Disposition header.- Returns:
- (undocumented)
-
headers
Description copied from interface:Multipart.BodyPart
The headers the part carries.- Specified by:
headers
in interfaceMultipart.BodyPart
- Returns:
- (undocumented)
-
contentDispositionHeader
Description copied from interface:Multipart.BodyPart
The potentially present {@link <code>Content-Disposition</code>} header.- Specified by:
contentDispositionHeader
in interfaceMultipart.BodyPart
- Returns:
- (undocumented)
-
dispositionParams
Description copied from interface:Multipart.BodyPart
The parameters of the potentially present {@link <code>Content-Disposition</code>} header. Returns an empty map if no such header is present.- Specified by:
dispositionParams
in interfaceMultipart.BodyPart
- Returns:
- (undocumented)
-
dispositionType
Description copied from interface:Multipart.BodyPart
Thepekko.http.scaladsl.model.headers.ContentDispositionType
of the potentially present {@link <code>Content-Disposition</code>} header.- Specified by:
dispositionType
in interfaceMultipart.BodyPart
- Returns:
- (undocumented)
-
filename
The value of thefilename
Content-Disposition parameter, if available.- Returns:
- (undocumented)
-
toStrict
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) - Specified by:
toStrict
in interfaceMultipart.BodyPart
-
getName
Java API- Specified by:
getName
in interfaceMultipart.FormData.BodyPart
-
getAdditionalDispositionParams
Java API- Specified by:
getAdditionalDispositionParams
in interfaceMultipart.FormData.BodyPart
-
getAdditionalHeaders
Java API- Specified by:
getAdditionalHeaders
in interfaceMultipart.FormData.BodyPart
-
getFilename
Java API- Specified by:
getFilename
in interfaceMultipart.FormData.BodyPart
-
toStrict
public CompletionStage<Multipart.FormData.BodyPart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java API- Specified by:
toStrict
in interfaceMultipart.BodyPart
- Specified by:
toStrict
in interfaceMultipart.BodyPart
- Specified by:
toStrict
in interfaceMultipart.FormData.BodyPart
-