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|
Copyright © 2003–2017 Atlassian. All rights reserved.