public static final class HttpEntity.IndefiniteLength extends java.lang.Object implements HttpEntity.IndefiniteLength, BodyPartEntity, HttpEntity.WithoutKnownLength, scala.Product, java.io.Serializable
HttpEntity.Chunk, HttpEntity.Chunk$, HttpEntity.Chunked, HttpEntity.Chunked$, HttpEntity.ChunkStreamPart, HttpEntity.ChunkStreamPart$, HttpEntity.CloseDelimited, HttpEntity.CloseDelimited$, HttpEntity.Default, HttpEntity.Default$, HttpEntity.DiscardedEntity, HttpEntity.HttpEntityScalaDSLSugar, HttpEntity.HttpEntityScalaDSLSugar$, HttpEntity.IndefiniteLength, HttpEntity.IndefiniteLength$, HttpEntity.LastChunk, HttpEntity.LastChunk$, HttpEntity.Strict, HttpEntity.Strict$, HttpEntity.WithoutKnownLength| Constructor and Description |
|---|
IndefiniteLength(ContentType contentType,
org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data) |
| Modifier and Type | Method and Description |
|---|---|
ContentType |
contentType()
The
ContentType associated with this entity. |
org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> |
data() |
boolean |
isIndefiniteLength()
Returns if this entity is a subtype of HttpEntityIndefiniteLength.
|
java.lang.String |
productPrefix() |
java.lang.String |
toString() |
HttpEntity.IndefiniteLength |
withContentType(ContentType contentType)
Creates a copy of this HttpEntity with the
contentType overridden with the given one. |
HttpEntity.IndefiniteLength |
withData(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwithoutSizeLimit, withSizeLimitcontentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimitcompletionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isCloseDelimited, isDefault, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentTypepublic IndefiniteLength(ContentType contentType, org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data)
public ContentType contentType()
HttpEntityContentType associated with this entity.contentType in interface HttpEntity.WithoutKnownLengthpublic org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data()
data in interface HttpEntity.WithoutKnownLengthpublic boolean isIndefiniteLength()
HttpEntityisIndefiniteLength in interface HttpEntitypublic HttpEntity.IndefiniteLength withContentType(ContentType contentType)
HttpEntitycontentType overridden with the given one.contentType - (undocumented)public HttpEntity.IndefiniteLength withData(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data)
withData in interface HttpEntity.WithoutKnownLengthpublic java.lang.String productPrefix()
productPrefix in interface scala.Productpublic java.lang.String toString()
toString in class java.lang.Object