You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Andreas Kohn (JIRA)" <ji...@apache.org> on 2013/10/14 14:17:41 UTC

[jira] [Updated] (EMAIL-135) Make DataSourceUrlResolver#createUrl() protected

     [ https://issues.apache.org/jira/browse/EMAIL-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Kohn updated EMAIL-135:
-------------------------------

    Attachment: email-135-datasourceurlresolver-createUrl-protected.diff

Trivial patch.

> Make DataSourceUrlResolver#createUrl() protected
> ------------------------------------------------
>
>                 Key: EMAIL-135
>                 URL: https://issues.apache.org/jira/browse/EMAIL-135
>             Project: Commons Email
>          Issue Type: Improvement
>    Affects Versions: 1.3.1
>            Reporter: Andreas Kohn
>            Priority: Minor
>         Attachments: email-135-datasourceurlresolver-createUrl-protected.diff
>
>
> It would be nice if {{#createUrl()}} was protected, so that it can be used in derived classes.
> In the specific instance where I need that: we're sending emails using Amazon Simple Email Service, which requires that attachments not just have a specific content type, but also an extension matching that content type.
> To implement this requirement I've extended DataSourceUrlResolver, and return a URLDataSource that reports the original file name with the extension suitably enforced.



--
This message was sent by Atlassian JIRA
(v6.1#6144)