public class DefaultMimetypesExtensionTranslationMapFactory extends Object implements MimetypesExtensionTranslationMapFactory
NOTE: The current email infrastructure relies on a DataSource to represent an email attachment. Because of this, DataSource.name is used for both the ContentId and Filename. Some email services like Amazon SES require a valid filename (including extension), this class is used to determine a reasonable extension for a DataSources mime type and append it to the end of a file name. Ideally, we'd use another object to represent an attachment, and preserve the content-id, intended file name (w/ attachment) there.
Constructor and Description |
---|
DefaultMimetypesExtensionTranslationMapFactory() |
public DefaultMimetypesExtensionTranslationMapFactory()
public Map<String,String> getMimetypeExtensionTranslationMap()
getMimetypeExtensionTranslationMap
in interface MimetypesExtensionTranslationMapFactory
Copyright © 2003–2016 Atlassian. All rights reserved.