Class DefaultMimeMappingStrategy

  • All Implemented Interfaces:
    MimeMappingStrategy

    public class DefaultMimeMappingStrategy
    extends java.lang.Object
    implements MimeMappingStrategy
    MimeMappingStrategy implementation backed by the hybris configuration (project.properties, local.properties et. al.).

    You can register further mime type mapping by adding the following properties:

    1. replace the slash (/) in your mimetype with a dot (.).
    2. add property media.customextension.<mimetype>=<extension> to your properties

    Example:

     media.customextension.application.vnd.ms-excel=xls
     media.customextension.application.vnd.ms-powerpoint=ppt
     media.customextension.application.vnd.visio=vsd
     

    See the advanced.properties for predefined mime types.