Class 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 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 new FeedEntityHeader 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 interface ToHttpHeaders
        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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object