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.StrictNested 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 thenameparameter.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.ContentDispositionTypeof the potentially present {@link <code>Content-Disposition</code>} header.scala.Option<String>filename()The value of thefilenameContent-Disposition parameter, if available.Java APIJava APIJava APIgetName()Java APIscala.collection.immutable.Seq<HttpHeader>headers()The headers the part carries.abstract Stringname()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, waitMethods 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 thenameparameter.- Returns:
- (undocumented)
-
additionalHeaders
Part headers, not including the Content-Disposition header.- Returns:
- (undocumented)
-
headers
Description copied from interface:Multipart.BodyPartThe headers the part carries.- Specified by:
headersin interfaceMultipart.BodyPart- Returns:
- (undocumented)
-
contentDispositionHeader
Description copied from interface:Multipart.BodyPartThe potentially present {@link <code>Content-Disposition</code>} header.- Specified by:
contentDispositionHeaderin interfaceMultipart.BodyPart- Returns:
- (undocumented)
-
dispositionParams
Description copied from interface:Multipart.BodyPartThe parameters of the potentially present {@link <code>Content-Disposition</code>} header. Returns an empty map if no such header is present.- Specified by:
dispositionParamsin interfaceMultipart.BodyPart- Returns:
- (undocumented)
-
dispositionType
Description copied from interface:Multipart.BodyPartThepekko.http.scaladsl.model.headers.ContentDispositionTypeof the potentially present {@link <code>Content-Disposition</code>} header.- Specified by:
dispositionTypein interfaceMultipart.BodyPart- Returns:
- (undocumented)
-
filename
The value of thefilenameContent-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:
toStrictin interfaceMultipart.BodyPart
-
getName
Java API- Specified by:
getNamein interfaceMultipart.FormData.BodyPart
-
getAdditionalDispositionParams
Java API- Specified by:
getAdditionalDispositionParamsin interfaceMultipart.FormData.BodyPart
-
getAdditionalHeaders
Java API- Specified by:
getAdditionalHeadersin interfaceMultipart.FormData.BodyPart
-
getFilename
Java API- Specified by:
getFilenamein interfaceMultipart.FormData.BodyPart
-
toStrict
public CompletionStage<Multipart.FormData.BodyPart.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer) Java API- Specified by:
toStrictin interfaceMultipart.BodyPart- Specified by:
toStrictin interfaceMultipart.BodyPart- Specified by:
toStrictin interfaceMultipart.FormData.BodyPart
-