Package akka.http.scaladsl.model
Class HttpEntity.Chunk
- java.lang.Object
-
- akka.http.javadsl.model.HttpEntity.ChunkStreamPart
-
- akka.http.scaladsl.model.HttpEntity.ChunkStreamPart
-
- akka.http.scaladsl.model.HttpEntity.Chunk
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing interface:
- HttpEntity
public static final class HttpEntity.Chunk extends HttpEntity.ChunkStreamPart implements scala.Product, java.io.Serializable
An intermediate entity chunk guaranteed to carry non-empty data.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class akka.http.javadsl.model.HttpEntity.ChunkStreamPart
LAST
-
-
Constructor Summary
Constructors Constructor Description Chunk(akka.util.ByteString data, java.lang.String extension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.util.ByteString
data()
Returns the byte data of this chunk.java.lang.String
extension()
Returns extensions data for this chunk.java.lang.Iterable<HttpHeader>
getTrailerHeaders()
Java APIboolean
isLastChunk()
Returns if this is the last chunk-
Methods inherited from class akka.http.javadsl.model.HttpEntity.ChunkStreamPart
create, create, createLast
-
-
-
-
Method Detail
-
data
public akka.util.ByteString data()
Description copied from class:HttpEntity.ChunkStreamPart
Returns the byte data of this chunk. Will be non-empty for every regular chunk. Will be empty for the last chunk.- Specified by:
data
in classHttpEntity.ChunkStreamPart
-
extension
public java.lang.String extension()
Description copied from class:HttpEntity.ChunkStreamPart
Returns extensions data for this chunk.- Specified by:
extension
in classHttpEntity.ChunkStreamPart
-
isLastChunk
public boolean isLastChunk()
Description copied from class:HttpEntity.ChunkStreamPart
Returns if this is the last chunk- Specified by:
isLastChunk
in classHttpEntity.ChunkStreamPart
-
getTrailerHeaders
public java.lang.Iterable<HttpHeader> getTrailerHeaders()
Java API- Specified by:
getTrailerHeaders
in classHttpEntity.ChunkStreamPart
-
-