code: public void addUserAgent(String userAgent) {
      if (userAgent.equals("*")) {
        anyAgent = true;
      } else {
        this.userAgents.add(userAgent);
      }
    }
docs: Adds user agent.
  @param userAgent host name