public static final class HttpEntity.CloseDelimited extends java.lang.Object implements HttpEntity.CloseDelimited, ResponseEntity, HttpEntity.WithoutKnownLength, scala.Product, scala.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
EMPTY
Constructor and Description |
---|
CloseDelimited(ContentType contentType,
akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data) |
Modifier and Type | Method and Description |
---|---|
ContentType |
contentType()
The
ContentType associated with this entity. |
akka.stream.scaladsl.Source<akka.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(akka.stream.scaladsl.Source<akka.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, getContentLengthOption, getContentType, getDataBytes, isChunked, isDefault, isIndefiniteLength, toStrict, toStrict, toStrict, toStrict, withContentType
public CloseDelimited(ContentType contentType, akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
public ContentType contentType()
HttpEntity
ContentType
associated with this entity.contentType
in interface HttpEntity.WithoutKnownLength
public akka.stream.scaladsl.Source<akka.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(akka.stream.scaladsl.Source<akka.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