-
public enum MediaTypeThe MediaType enumeration contains a list of media types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUDIORepresents an AUDIO media type.
VIDEORepresents a VIDEO media type.
TEXTRepresents a TEXT media type. See RFC4103.
APPLICATIONRepresents an APPLICATION media type.
MESSAGERepresents a (chat-) MESSAGE media type.
IMAGERepresents an IMAGE media type. See RFC6466.
CONTROLRepresents a DATA media type.
DATARepresents a DATA media type.
-
Method Summary
Modifier and Type Method Description StringtoString()Returns the name of this MediaType (e.g. static MediaTypeparseString(String mediaTypeName)Returns a MediaType value corresponding to the specified mediaTypeName or in other words AUDIO, MESSAGE or VIDEO. -
-
Method Detail
-
toString
String toString()
Returns the name of this MediaType (e.g. "audio", "message" or "video"). The name returned by this method is meant for use by session description mechanisms such as SIP/SDP or XMPP/Jingle.
-
parseString
static MediaType parseString(String mediaTypeName)
Returns a MediaType value corresponding to the specified mediaTypeName or in other words AUDIO, MESSAGE or VIDEO.
- Parameters:
mediaTypeName- the name that we'd like to parse.
-
-
-
-