Class MediaType

java.lang.Object
org.apache.jena.atlas.web.MediaType
Direct Known Subclasses:
MediaRange

public class MediaType extends Object
A structure to represent a media type. See also the Apache httpd documentation.

MediaType is the general form, with parameters. ContentType is limited to type, subtype and charset.

  • Constructor Details

    • MediaType

      public MediaType(MediaType other)
    • MediaType

      public MediaType(String type, String subType)
      Create a media type from type and subType
    • MediaType

      public MediaType(String type, String subType, String charset)
      Create a media type from type and subType
  • Method Details