Class ExpectationWriter

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

    public class ExpectationWriter
    extends HeaderWriter<org.restlet.data.Expectation>
    Expectation header writer.
    Author:
    Jerome Louvel
    • Constructor Detail

      • ExpectationWriter

        public ExpectationWriter()
    • Method Detail

      • write

        public static java.lang.String write​(java.util.List<org.restlet.data.Expectation> expectations)
        Writes a list of expectations with a comma separator.
        Parameters:
        expectations - The list of expectations.
        Returns:
        The formatted list of expectations.
      • append

        public ExpectationWriter append​(org.restlet.data.Expectation expectation)
        Description copied from class: HeaderWriter
        Appends a value.
        Specified by:
        append in class HeaderWriter<org.restlet.data.Expectation>
        Parameters:
        expectation - The value.
        Returns:
        This writer.