Creates a new media type with the given type and subtype. @throws IllegalArgumentException if type or subtype is invalid or if a wildcard is used for the type, but not the subtype.
(String type, String subtype)
| 838 | |
| 839 | |
| 840 | public static MediaType create(String type, String subtype) { |
| 841 | return create(type, subtype, ImmutableListMultimap.<String, String>of()); |
| 842 | } |
| 843 | |
| 844 | /** |
| 845 | * Creates a media type with the "application" type and the given subtype. |
no test coverage detected