MediatypeParameter
This class represents the "MEDIATYPE" parameter
MediatypeParameter
should be called with a single argument that is either an instance ofParameterValueType
specifying the media type and subtype, or an array of length 2, whose first item is an instance ofParameterValueType
specifying the media type and subtype, and whose second item is also an instance ofParameterValueType
specifying the media attribute and valuesThe media type and subtype
ParameterValueType
value should be of the formattype-name "/" subtype-name
, while the attribute and valueParameterValueType
should be of the formatattribute "=" value
new MediatypeParameter(new ParameterValueType("audio/mp3"));
new MediatypeParameter([
new ParameterValueType("text/html"),
new ParameterValueType("charset=UTF-8"),
]);