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, wait
withoutSizeLimit, withSizeLimit
contentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimit
completionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isCloseDelimited, isDefault, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentType
public IndefiniteLength(ContentType contentType, org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data)
public ContentType contentType()
HttpEntity
ContentType
associated with this entity.contentType
in interface HttpEntity.WithoutKnownLength
public org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,java.lang.Object> data()
data
in interface HttpEntity.WithoutKnownLength
public boolean isIndefiniteLength()
HttpEntity
isIndefiniteLength
in interface HttpEntity
public HttpEntity.IndefiniteLength withContentType(ContentType contentType)
HttpEntity
contentType
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.WithoutKnownLength
public java.lang.String productPrefix()
productPrefix
in interface scala.Product
public java.lang.String toString()
toString
in class java.lang.Object