code: public void setMethods(HttpMethod[] methods) {
          m_methods.clear();
          for (HttpMethod method : methods) {
              m_methods.add(method);
          }
      }
docs: Set the {@link HttpMethod}s that can be used to invoke this command. Most commands
  have a single HTTP method.
  
  @param methods   One of more {@link HttpMethod}s that can be used to invoke this
  command.