public abstract static class Multipart.ByteRanges extends java.lang.Object implements Multipart, Multipart.ByteRanges
multipart/byteranges
content as defined by
https://tools.ietf.org/html/rfc7233#section-5.4.1 and https://tools.ietf.org/html/rfc7233#appendix-AMultipart.BodyPart, Multipart.BodyPart$, Multipart.ByteRanges, Multipart.ByteRanges$, Multipart.FormData, Multipart.FormData$, Multipart.General, Multipart.General$, Multipart.Strict
Multipart.ByteRanges.BodyPart, Multipart.ByteRanges.Strict
Constructor and Description |
---|
ByteRanges() |
Modifier and Type | Method and Description |
---|---|
org.apache.pekko.stream.javadsl.Source<? extends Multipart.ByteRanges.BodyPart,java.lang.Object> |
getParts()
Java API
|
MediaType.Multipart |
mediaType()
The media-type this multipart content carries.
|
abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.ByteRanges.BodyPart,java.lang.Object> |
parts()
The stream of body parts this content consists of.
|
scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.ByteRanges.Strict> |
toStrict(scala.concurrent.duration.FiniteDuration timeout,
org.apache.pekko.stream.Materializer fm)
Converts this content into its strict counterpart.
|
java.util.concurrent.CompletionStage<Multipart.ByteRanges.Strict> |
toStrict(long timeoutMillis,
org.apache.pekko.stream.Materializer materializer)
Java API
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMediaType, toEntity, toEntity, toEntity
public MediaType.Multipart mediaType()
Multipart
public abstract org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.http.scaladsl.model.Multipart.ByteRanges.BodyPart,java.lang.Object> parts()
Multipart
public scala.concurrent.Future<org.apache.pekko.http.scaladsl.model.Multipart.ByteRanges.Strict> toStrict(scala.concurrent.duration.FiniteDuration timeout, org.apache.pekko.stream.Materializer fm)
Multipart
timeout
denotes the max time that an individual part must be read in.
The Future is failed with an TimeoutException if one part isn't read completely after the given timeout.timeout
- (undocumented)fm
- (undocumented)public org.apache.pekko.stream.javadsl.Source<? extends Multipart.ByteRanges.BodyPart,java.lang.Object> getParts()
getParts
in interface Multipart
getParts
in interface Multipart.ByteRanges
public java.util.concurrent.CompletionStage<Multipart.ByteRanges.Strict> toStrict(long timeoutMillis, org.apache.pekko.stream.Materializer materializer)
toStrict
in interface Multipart
toStrict
in interface Multipart.ByteRanges