Class MethodReader

java.lang.Object
org.restlet.engine.header.HeaderReader<Method>
org.restlet.engine.header.MethodReader

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

    • MethodReader

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

    • addValues

      public static void addValues(Header header, Collection<Method> collection)
      Adds values to the given collection.
      Parameters:
      header - The header to read.
      collection - The collection to update.
    • readValue

      public Method 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<Method>
      Returns:
      The next value.
      Throws:
      IOException