Package akka.http.scaladsl.model
Class HttpEntity.CloseDelimited
- java.lang.Object
-
- akka.http.scaladsl.model.HttpEntity.CloseDelimited
-
- All Implemented Interfaces:
HttpEntity
,HttpEntity.CloseDelimited
,ResponseEntity
,HttpEntity
,HttpEntity.WithoutKnownLength
,ResponseEntity
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- HttpEntity
public static final class HttpEntity.CloseDelimited extends java.lang.Object implements HttpEntity.CloseDelimited, ResponseEntity, HttpEntity.WithoutKnownLength, scala.Product, java.io.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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.http.javadsl.model.HttpEntity
HttpEntity.Chunked, HttpEntity.ChunkStreamPart, HttpEntity.CloseDelimited, HttpEntity.Default, HttpEntity.DiscardedEntity, HttpEntity.IndefiniteLength, HttpEntity.Strict
-
Nested classes/interfaces inherited from interface akka.http.scaladsl.model.HttpEntity
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 Summary
Constructors Constructor Description CloseDelimited(ContentType contentType, akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType
contentType()
TheContentType
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 thecontentType
overridden with the given one.HttpEntity.CloseDelimited
withData(akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.http.scaladsl.model.HttpEntity
completionStageCovariant, discardBytes, discardBytes, getContentLengthOption, getContentType, getDataBytes, isChunked, isDefault, isIndefiniteLength, isStrict, toStrict, toStrict, toStrict, toStrict, toStrict, toStrict, transformDataBytes, withContentType
-
Methods inherited from interface akka.http.scaladsl.model.HttpEntity.WithoutKnownLength
contentLengthOption, dataBytes, isKnownEmpty, transformDataBytes, withoutSizeLimit, withSizeLimit
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator
-
Methods inherited from interface akka.http.scaladsl.model.ResponseEntity
transformDataBytes, withoutSizeLimit, withSizeLimit
-
-
-
-
Constructor Detail
-
CloseDelimited
public CloseDelimited(ContentType contentType, akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
-
-
Method Detail
-
contentType
public ContentType contentType()
Description copied from interface:HttpEntity
TheContentType
associated with this entity.- Specified by:
contentType
in interfaceHttpEntity
- Specified by:
contentType
in interfaceHttpEntity.WithoutKnownLength
- Returns:
- (undocumented)
-
data
public akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data()
- Specified by:
data
in interfaceHttpEntity.WithoutKnownLength
-
isCloseDelimited
public boolean isCloseDelimited()
Description copied from interface:HttpEntity
Returns if this entity is a subtype of HttpEntityCloseDelimited.- Specified by:
isCloseDelimited
in interfaceHttpEntity
- Specified by:
isCloseDelimited
in interfaceHttpEntity
-
withContentType
public HttpEntity.CloseDelimited withContentType(ContentType contentType)
Description copied from interface:HttpEntity
Creates a copy of this HttpEntity with thecontentType
overridden with the given one.- Specified by:
withContentType
in interfaceHttpEntity
- Specified by:
withContentType
in interfaceResponseEntity
- Parameters:
contentType
- (undocumented)- Returns:
- (undocumented)
-
withData
public HttpEntity.CloseDelimited withData(akka.stream.scaladsl.Source<akka.util.ByteString,java.lang.Object> data)
- Specified by:
withData
in interfaceHttpEntity.WithoutKnownLength
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-