src/main/java/org/owasp/url/MediaTypeClassifierBuilder.java
public MediaTypeClassifierBuilder type(Iterable<? extends MediaType> mts) {
    for (MediaType mediaType : mts) {
      if (MediaType.ANY_TYPE.equals(mediaType)) {
        allowAny = true;
      } else {
        mediaTypes.add(mediaType);
      }
    }
    return this;
  }
/**
   * Allows any media type that matches the given types per
   * <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">
   * Accept header semantics</a>.
   *
   * @param mts to allow.  May include wildcard types.
   * @return this
   */
Allows any media type that matches the given types per

Accept header semantics.

@param mts to allow.  May include wildcard types.
@return this
Allows any media type that matches the given types per Accept header semantics . @param mts to allow . May include wildcard types . @return this
public MediaTypeClassifierBuilder type(Iterable<? extends MediaType> mts) {
    for (MediaType mediaType : mts) {
      if (MediaType.ANY_TYPE.equals(mediaType)) {
        allowAny = true;
      } else {
        mediaTypes.add(mediaType);
      }
    }
    return this;
  }
public MediaTypeClassifierBuilder type ( Iterable < ? extends MediaType > mts ) { for ( MediaType mediaType : mts ) { if ( MediaType . ANY_TYPE . equals ( mediaType ) ) { allowAny = true ; } else { mediaTypes . add ( mediaType ) ; } } return this ; }
Allows any media type that matches the given types per
 <a href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">
 Accept header semantics</a>.
Allows any media type that matches the given types per <a href = " https : // www . w3 . org / Protocols / rfc2616 / rfc2616 - sec14 . html " > Accept header semantics< / a > .