Package 

Enum MediaType

  • All Implemented Interfaces:

    
    public enum MediaType
    
                        

    The MediaType enumeration contains a list of media types.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DATA

      Represents a DATA media type.

      CONTROL

      Represents a DATA media type.

      IMAGE

      Represents an IMAGE media type. See RFC6466.

      MESSAGE

      Represents a (chat-) MESSAGE media type.

      APPLICATION

      Represents an APPLICATION media type.

      TEXT

      Represents a TEXT media type. See RFC4103.

      VIDEO

      Represents a VIDEO media type.

      AUDIO

      Represents an AUDIO media type.

    • Method Summary

      Modifier and Type Method Description
      String toString() Returns the name of this MediaType (e.g.
      static MediaType parseString(String mediaTypeName) Returns a MediaType value corresponding to the specified mediaTypeName or in other words AUDIO, MESSAGE or VIDEO.
      static Array<MediaType> values()
      static MediaType valueOf(String name)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.