This interface represents a MediaType. It can be used as a model for user interfaces that needs to set a media type. For example a combo box of media types.
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getMediaType() This method should return a valid media type. |
|
void |
setMediaType(java.lang.String mediaType) This method should set the media type so it can later be accessed by getMediaType. |
This method should return a valid media type. For example application/xml or application/json. Check out the standard for valid values.
This method should set the media type so it can later be accessed by getMediaType.
mediaType
- a valid media type.