Interface TrailerProvider

  • All Superinterfaces:
    Resettable
    All Known Implementing Classes:
    ChecksumTrailerProvider, SigV4aTrailerProvider, SigV4TrailerProvider
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TrailerProvider
    extends Resettable
    A functional interface for defining a trailer, where the trailer is a header pair.

    A trailer usually depends on the chunk-data itself (checksum, signature, etc.), but is not required to. Per RFC-7230, the chunked trailer section is defined as:

         trailer-part   = *( header-field CRLF )
     
    An implementation of this interface is specifically an element of the trailer-part. Therefore, all occurrences of TrailerProvider's make up the trailer-part.