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, wait
transformDataBytes, withoutSizeLimit, withSizeLimit
contentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimit
completionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isDefault, isIndefiniteLength, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentType
public CloseDelimited(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 isCloseDelimited()
HttpEntity
isCloseDelimited
in interface HttpEntity
public HttpEntity.CloseDelimited withContentType(ContentType contentType)
HttpEntity
contentType
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.WithoutKnownLength
public java.lang.String productPrefix()
productPrefix
in interface scala.Product
public java.lang.String toString()
toString
in class java.lang.Object