Class HttpEntity.CloseDelimited
java.lang.Object
org.apache.pekko.http.scaladsl.model.HttpEntity.CloseDelimited
- All Implemented Interfaces:
- Serializable,- HttpEntity,- HttpEntity.CloseDelimited,- ResponseEntity,- HttpEntity,- HttpEntity.WithoutKnownLength,- ResponseEntity,- scala.Equals,- scala.Product
- Enclosing interface:
- HttpEntity
public static final class HttpEntity.CloseDelimited
extends Object
implements HttpEntity.CloseDelimited, ResponseEntity, HttpEntity.WithoutKnownLength, scala.Product, Serializable
The model for the entity of an HTTP response that is terminated by the server closing the connection.
 The content-length of such responses is unknown at the time the response headers have been received.
 Note that this type of HttpEntity can only be used for HttpResponses.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.pekko.http.javadsl.model.HttpEntityHttpEntity.Chunked, HttpEntity.ChunkStreamPart, HttpEntity.CloseDelimited, HttpEntity.Default, HttpEntity.DiscardedEntity, HttpEntity.IndefiniteLength, HttpEntity.StrictNested classes/interfaces inherited from interface org.apache.pekko.http.scaladsl.model.HttpEntityHttpEntity.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 SummaryConstructorsConstructorDescriptionCloseDelimited(ContentType contentType, org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString, Object> data) 
- 
Method SummaryModifier and TypeMethodDescriptionTheContentTypeassociated with this entity.org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString,Object> data()booleanReturns if this entity is a subtype of HttpEntityCloseDelimited.toString()withContentType(ContentType contentType) Creates a copy of this HttpEntity with thecontentTypeoverridden with the given one.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface org.apache.pekko.http.scaladsl.model.HttpEntitycompletionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isDefault, isIndefiniteLength, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentTypeMethods inherited from interface org.apache.pekko.http.scaladsl.model.HttpEntity.WithoutKnownLengthcontentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimitMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIteratorMethods inherited from interface org.apache.pekko.http.scaladsl.model.ResponseEntitytransformDataBytes, withoutSizeLimit, withSizeLimit
- 
Constructor Details- 
CloseDelimitedpublic CloseDelimited(ContentType contentType, org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString, Object> data) 
 
- 
- 
Method Details- 
contentTypeDescription copied from interface:HttpEntityTheContentTypeassociated with this entity.- Specified by:
- contentTypein interface- HttpEntity
- Specified by:
- contentTypein interface- HttpEntity.WithoutKnownLength
- Returns:
- (undocumented)
 
- 
data- Specified by:
- datain interface- HttpEntity.WithoutKnownLength
 
- 
isCloseDelimitedpublic boolean isCloseDelimited()Description copied from interface:HttpEntityReturns if this entity is a subtype of HttpEntityCloseDelimited.- Specified by:
- isCloseDelimitedin interface- HttpEntity
- Specified by:
- isCloseDelimitedin interface- HttpEntity
 
- 
withContentTypeDescription copied from interface:HttpEntityCreates a copy of this HttpEntity with thecontentTypeoverridden with the given one.- Specified by:
- withContentTypein interface- HttpEntity
- Specified by:
- withContentTypein interface- ResponseEntity
- Parameters:
- contentType- (undocumented)
- Returns:
- (undocumented)
 
- 
withDatapublic HttpEntity.CloseDelimited withData(org.apache.pekko.stream.scaladsl.Source<org.apache.pekko.util.ByteString, Object> data) - Specified by:
- withDatain interface- HttpEntity.WithoutKnownLength
 
- 
productPrefix- Specified by:
- productPrefixin interface- scala.Product
 
- 
toString
 
-