Class CmsMimeType

java.lang.Object
org.opencms.loader.CmsMimeType
All Implemented Interfaces:
Comparable<CmsMimeType>

public class CmsMimeType extends Object implements Comparable<CmsMimeType>
Describes a MIME type configured in OpenCms.

Since:
7.0.0
  • Constructor Details

    • CmsMimeType

      public CmsMimeType(String extension, String type)
      Default constructor for MIME types.

      If the extension does not start with a dot '.', then a dot is automatically added as a prefix.

      Parameters:
      extension - the MIME type extension
      type - the MIME type description
    • CmsMimeType

      public CmsMimeType(String extension, String type, boolean configured)
      Special constructor for "marked" MIME types.

      If the extension does not start with a dot '.', then a dot is automatically added as a prefix.

      Parameters:
      extension - the MIME type extension
      type - the MIME type description
      configured - indicates if this a MIME type read from the OpenCms configuration
  • Method Details