code: public String format() {
          if (getName().equals("*")) {
              return "*";
          }
          else {
              StringBuilder sb = new StringBuilder();
              if (isWeak()) {
                  sb.append("W/");
              }
              return sb.append('"').append(getName()).append('"').toString();
          }
      }
docs: Returns tag formatted as an HTTP tag string.
  
  @return The formatted HTTP tag string.
  
  @see <a
  href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11">HTTP
  Entity Tags</a>