Skip to main content

MediatypeParameter

  • This class represents the "MEDIATYPE" parameter

  • MediatypeParameter should be called with a single argument that is either an instance of ParameterValueType specifying the media type and subtype, or an array of length 2, whose first item is an instance of ParameterValueType specifying the media type and subtype, and whose second item is also an instance of ParameterValueType specifying the media attribute and values

  • The media type and subtype ParameterValueType value should be of the format type-name "/" subtype-name, while the attribute and value ParameterValueType should be of the format attribute "=" value

    new MediatypeParameter(new ParameterValueType("audio/mp3"));

    new MediatypeParameter([
    new ParameterValueType("text/html"),
    new ParameterValueType("charset=UTF-8"),
    ]);