Class DimensionWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public class DimensionWriter
    extends HeaderWriter<Dimension>
    Dimension header writer.
    • Constructor Detail

      • DimensionWriter

        public DimensionWriter()
    • Method Detail

      • write

        public static java.lang.String write​(java.util.Collection<Dimension> dimensions)
        Creates a vary header from the given dimensions.
        Parameters:
        dimensions - The dimensions to copy to the response.
        Returns:
        Returns the Vary header or null, if dimensions is null or empty.
      • append

        public DimensionWriter append​(java.util.Collection<Dimension> dimensions)
        Appends a collection of dimensions as a header.
        Overrides:
        append in class HeaderWriter<Dimension>
        Parameters:
        dimensions - The dimensions to format.
        Returns:
        This writer.