Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7293510256 for ; Thu, 24 Oct 2013 20:12:57 +0000 (UTC) Received: (qmail 52465 invoked by uid 500); 24 Oct 2013 20:10:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 52211 invoked by uid 500); 24 Oct 2013 20:10:10 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 52087 invoked by uid 99); 24 Oct 2013 20:10:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 20:10:08 +0000 Date: Thu, 24 Oct 2013 20:10:08 +0000 (UTC) From: "Thomas Neidhart (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (EMAIL-135) Make DataSourceUrlResolver#createUrl() protected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMAIL-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Neidhart closed EMAIL-135. --------------------------------- > 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 > Fix For: 1.3.2 > > 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)