[
https://issues.apache.org/jira/browse/SLING-3829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390225#comment-14390225
]
Antonio Sanso commented on SLING-3829:
--------------------------------------
thanks [~cziegeler] you are right.
and thanks [~alexander.klimetschek] for the pointers.
The Trie though seems to be good to solve the "inverse problem".
In the example you have
{code}
// Trie of First Name -> Person
Trie<String, Person> trie = new PatriciaTrie<String,
Person>(StringKeyAnalyzer.INSTANCE);
trie.put("Anna", person1);
trie.put("Alex", person2);
trie.put("Emma", person3);
trie.put("Patrick", person4);
trie.put("William", person5);
// Returns Alex
Map.Entry<String, Person> entry = trie.select("Al");
{code}
while we need something like
{code}
// Trie of First Name -> Person
Trie<String, Person> trie = new PatriciaTrie<String,
Person>(StringKeyAnalyzer.INSTANCE);
trie.put("Anna", person1);
trie.put("Alex", person2);
trie.put("Emma", person3);
trie.put("Patrick", person4);
trie.put("William", person5);
// Returns Alex
Map.Entry<String, Person> entry = trie.select("Alexander");
{code}
> Add support for Content-Disposition attachment
> -----------------------------------------------
>
> Key: SLING-3829
> URL: https://issues.apache.org/jira/browse/SLING-3829
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Antonio Sanso
> Assignee: Antonio Sanso
> Priority: Minor
> Attachments: ContentDispositionFilter.java, SLING-3829-patch.txt
>
>
> In some situation will be useful (and safer) to force Content-Disposition
> attachment for some Content-Type (configurable ) under some specific (and
> sensitive) path (configurable)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)