-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum MediaTypeThe MediaType enumeration contains a list of media types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATARepresents a DATA media type.
CONTROLRepresents a DATA media type.
IMAGERepresents an IMAGE media type. See RFC6466.
MESSAGERepresents a (chat-) MESSAGE media type.
APPLICATIONRepresents an APPLICATION media type.
TEXTRepresents a TEXT media type. See RFC4103.
VIDEORepresents a VIDEO media type.
AUDIORepresents an AUDIO 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 specifiedmediaTypeName or in other words AUDIO, MESSAGEor VIDEO. static Array<MediaType>values()static MediaTypevalueOf(String name)-
-
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 descriptionmechanisms such as SIP/SDP or XMPP/Jingle.
-
parseString
static MediaType parseString(String mediaTypeName)
Returns a MediaType value corresponding to the specifiedmediaTypeName or in other words AUDIO, MESSAGEor VIDEO.
- Parameters:
mediaTypeName- the name that we'd like to parse.
-
-
-
-