Enum Class MediaTypes

java.lang.Object
java.lang.Enum<MediaTypes>
org.wildfly.clustering.cache.infinispan.marshalling.MediaTypes
All Implemented Interfaces:
Serializable, Comparable<MediaTypes>, Constable, Supplier<org.infinispan.commons.dataconversion.MediaType>

public enum MediaTypes extends Enum<MediaTypes> implements Supplier<org.infinispan.commons.dataconversion.MediaType>
Media types for supported marshallers.
Author:
Paul Ferraro
  • Enum Constant Details

    • JAVA_SERIALIZATION

      public static final MediaTypes JAVA_SERIALIZATION
    • JBOSS_MARSHALLING

      public static final MediaTypes JBOSS_MARSHALLING
    • INFINISPAN_PROTOSTREAM

      public static final MediaTypes INFINISPAN_PROTOSTREAM
    • WILDFLY_PROTOSTREAM

      public static final MediaTypes WILDFLY_PROTOSTREAM
  • Method Details

    • values

      public static MediaTypes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MediaTypes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public org.infinispan.commons.dataconversion.MediaType get()
      Specified by:
      get in interface Supplier<org.infinispan.commons.dataconversion.MediaType>