<em>Replaces</em> all parameters with the given attribute with a single parameter with the given value. If multiple parameters with the same attributes are necessary use {@link #withParameters(String, Iterable)}. Prefer {@link #withCharset} for setting the {@code charset} parameter when using a {@li
(String attribute, String value)
| 934 | * @throws IllegalArgumentException if either {@code attribute} or {@code value} is invalid |
| 935 | */ |
| 936 | public MediaType withParameter(String attribute, String value) { |
| 937 | return withParameters(attribute, ImmutableSet.of(value)); |
| 938 | } |
| 939 | |
| 940 | /** |
| 941 | * Returns a new instance with the same type and subtype as this instance, with the {@code |