Package io.datareplication.consumer
Class StreamingPage.Chunk.Header<EntityHeader>
- java.lang.Object
-
- io.datareplication.consumer.StreamingPage.Chunk<EntityHeader>
-
- io.datareplication.consumer.StreamingPage.Chunk.Header<EntityHeader>
-
- Type Parameters:
EntityHeader
- the type of the entity headers; seeEntity
- Enclosing class:
- StreamingPage.Chunk<EntityHeader>
public static final class StreamingPage.Chunk.Header<EntityHeader> extends StreamingPage.Chunk<EntityHeader>
Represents the start of an entity. This contains the entity's headers and signals that following
StreamingPage.Chunk.BodyChunk
elements form the body of this entity.May be followed by:
StreamingPage.Chunk.BodyChunk
: blocks of this entity's bodyStreamingPage.Chunk.BodyEnd
: if the entity's body is empty (length 0), no body chunks are emitted and the header is immediately followed byStreamingPage.Chunk.BodyEnd
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.datareplication.consumer.StreamingPage.Chunk
StreamingPage.Chunk.BodyChunk<EntityHeader>, StreamingPage.Chunk.BodyEnd<EntityHeader>, StreamingPage.Chunk.Header<EntityHeader>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
@NonNull ContentType
contentType()
The entity's content type.boolean
equals(java.lang.Object o)
int
hashCode()
EntityHeader
header()
The entity's headers.java.lang.String
toString()
-
Methods inherited from class io.datareplication.consumer.StreamingPage.Chunk
bodyChunk, bodyEnd, header
-
-
-
-
Method Detail
-
header
@NonNull public EntityHeader header()
The entity's headers.
-
contentType
@NonNull public @NonNull ContentType contentType()
The entity's content type.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-