public static final class HttpEntity.CloseDelimited extends java.lang.Object implements HttpEntity.CloseDelimited, ResponseEntity, 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 |
|---|
CloseDelimited(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 |
isCloseDelimited()
Returns if this entity is a subtype of HttpEntityCloseDelimited.
|
java.lang.String |
productPrefix() |
java.lang.String |
toString() |
HttpEntity.CloseDelimited |
withContentType(ContentType contentType)
Creates a copy of this HttpEntity with the
contentType overridden with the given one. |
HttpEntity.CloseDelimited |
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, waittransformDataBytes, withoutSizeLimit, withSizeLimitcontentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimitcompletionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isDefault, isIndefiniteLength, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentTypepublic CloseDelimited(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 isCloseDelimited()
HttpEntityisCloseDelimited in interface HttpEntitypublic HttpEntity.CloseDelimited withContentType(ContentType contentType)
HttpEntitycontentType overridden with the given one.contentType - (undocumented)public HttpEntity.CloseDelimited 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