Class MediaType


public class MediaType extends MediaBase
  • Constructor Details

    • MediaType

      public MediaType(String type, String subtype)
      Create a new object with the given type and subtype.
      Parameters:
      type - the top-level type
      subtype - the subtype
    • MediaType

      public MediaType(String type, String subtype, Map<String,String> parameters)
      Create a new object with the given type, subtype and parameters.
      Parameters:
      type - the top-level type
      subtype - the subtype
      parameters - the parameters
    • MediaType

      public MediaType(MediaBase.MediaTypePair type, Map<String,String> parameters)
      Create a new object with the given type and parameters.
      Parameters:
      type - the type
      parameters - the parameters
  • Method Details