Package 

Enum MediaType

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum MediaType
    
                        

    The MediaType enumeration contains a list of media types.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUDIO

      Represents an AUDIO media type.

      VIDEO

      Represents a VIDEO media type.

      TEXT

      Represents a TEXT media type. See RFC4103.

      APPLICATION

      Represents an APPLICATION media type.

      MESSAGE

      Represents a (chat-) MESSAGE media type.

      IMAGE

      Represents an IMAGE media type. See RFC6466.

      CONTROL

      Represents a DATA media type.

      DATA

      Represents a DATA 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 specifiedmediaTypeName or in other words AUDIO, MESSAGEor 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
    • 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.