Class ExpectationReader

java.lang.Object
org.restlet.engine.header.HeaderReader<Expectation>
org.restlet.engine.header.ExpectationReader

public class ExpectationReader extends HeaderReader<Expectation>
Expectation header reader.
Author:
Jerome Louvel
  • Constructor Details

    • ExpectationReader

      public ExpectationReader(String header)
      Constructor.
      Parameters:
      header - The header to read.
  • Method Details

    • addValues

      public static void addValues(String header, ClientInfo clientInfo)
      Adds values to the given collection.
      Parameters:
      header - The header to read.
      clientInfo - The client info to update.
    • readValue

      public Expectation readValue() throws IOException
      Description copied from class: HeaderReader
      Read the next value. There can be multiple values for a single header. Returns null by default.
      Overrides:
      readValue in class HeaderReader<Expectation>
      Returns:
      The next value.
      Throws:
      IOException