Package io.datareplication.model.feed
Class FeedEntityHeader
- java.lang.Object
-
- io.datareplication.model.feed.FeedEntityHeader
-
- All Implemented Interfaces:
ToHttpHeaders
public final class FeedEntityHeader extends java.lang.Object implements ToHttpHeaders
This class represents the headers of a feed entity.
-
-
Constructor Summary
Constructors Constructor Description FeedEntityHeader(@NonNull java.time.Instant lastModified, @NonNull OperationType operationType, @NonNull ContentId contentId)
FeedEntityHeader(@NonNull java.time.Instant lastModified, @NonNull OperationType operationType, @NonNull ContentId contentId, @NonNull HttpHeaders extraHeaders)
Creates a newFeedEntityHeader
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull ContentId
contentId()
The entity's content ID.boolean
equals(java.lang.Object o)
@NonNull HttpHeaders
extraHeaders()
Additional unstructured headers.int
hashCode()
@NonNull java.time.Instant
lastModified()
The entity's last modified Instant.@NonNull OperationType
operationType()
The kind of operation this entity represents.@NonNull HttpHeaders
toHttpHeaders()
Return HTTP headers for this object.java.lang.String
toString()
-
-
-
Constructor Detail
-
FeedEntityHeader
public FeedEntityHeader(@NonNull @NonNull java.time.Instant lastModified, @NonNull @NonNull OperationType operationType, @NonNull @NonNull ContentId contentId)
-
FeedEntityHeader
public FeedEntityHeader(@NonNull @NonNull java.time.Instant lastModified, @NonNull @NonNull OperationType operationType, @NonNull @NonNull ContentId contentId, @NonNull @NonNull HttpHeaders extraHeaders)
Creates a newFeedEntityHeader
instance.- Parameters:
lastModified
- The entity's last modified Instant.operationType
- The kind of operation this entity represents.contentId
- The entity's content ID. This is an internal ID (usually generated by the feed producer) that uniquely identifies an entity within a feed.extraHeaders
- Additional unstructured headers.- See Also:
OperationType
-
-
Method Detail
-
toHttpHeaders
@NonNull public @NonNull HttpHeaders toHttpHeaders()
Description copied from interface:ToHttpHeaders
Return HTTP headers for this object.- Specified by:
toHttpHeaders
in interfaceToHttpHeaders
- Returns:
- HTTP headers associated with this object
-
lastModified
@NonNull public @NonNull java.time.Instant lastModified()
The entity's last modified Instant.
-
operationType
@NonNull public @NonNull OperationType operationType()
The kind of operation this entity represents.- See Also:
OperationType
-
contentId
@NonNull public @NonNull ContentId contentId()
The entity's content ID. This is an internal ID (usually generated by the feed producer) that uniquely identifies an entity within a feed.
-
extraHeaders
@NonNull public @NonNull HttpHeaders extraHeaders()
Additional unstructured headers.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-