/**
  * Sets the methods supported defined by this AllowHeader.
  *
  * @param methods - the Iterator of Strings defining the methods supported
  *     <p>in this AllowHeader
  * @throws ParseException which signals that an error has been reached
  *     <p>unexpectedly while parsing the Strings defining the methods supported.
  */
 public void setMethods(List<String> methods) throws ParseException {
   ListIterator<String> it = methods.listIterator();
   while (it.hasNext()) {
     Allow allow = new Allow();
     allow.setMethod((String) it.next());
     this.add(allow);
   }
 }