Also lastly to combine with my previous mail, it doesn’t have to be only
images. It could also be pdf’s, zips,… So the approach I am using now won’t
work in all the cases I want :)
> On 28 Jul 2016, at 23:44, Roy Teeuwen wrote:
>
> Hey Jason, Olivier,
>
> @Jason:
> Damn, I
Hey Jason, Olivier,
@Jason:
Damn, I feel so stupid now :D indeed, using
/content/dam/nice-image.jpg.cdn./modification-date/20160815/nice-image.jpg
fixes everything. I don’t have to implement the nonexistingservlet anymore ;),
I was indeed thinking that jpg was the extension and so that the cdn
I was going to say that you shouldn't need to implement NonExistingResource
interface because a selector wouldn't impact resolution then I had one of those
blinding aha moments.
In the case of the url you posted you aren't adding a selector, you are
modifying the resource name.
On Thursday 28 July 2016 20:45:06 Roy Teeuwen wrote:
> Already tried that one ;) it returns a non existing resource with the path
> /content/dam/nice-image.cdn.jpg/modification-date/20160815/nice-image.jpg
Hi Roy,
that means your resource is not found. Make sure /content/dam/nice-image.jpg
is
Already tried that one ;) it returns a non existing resource with the path
/content/dam/nice-image.cdn.jpg/modification-date/20160815/nice-image.jpg
Greetings,
Roy
> On 28 Jul 2016, at 18:35, Jason Bailey wrote:
>
> I'm under the understanding that it is;
>
>
I'm under the understanding that it is;
request.getResource().getPath()
-Original Message-
From: Roy Teeuwen [mailto:r...@teeuwen.be]
Sent: Thursday, July 28, 2016 12:31 PM
To: users@sling.apache.org
Subject: Getting the actual resource from a request
Hey all,
I am creating a
Hey all,
I am creating a SlingServlet that will work by both using a selector and a
suffix. The resource is for example /content/dam/image.jpg and the actual url
will be
/content/dam/nice-image.cdn.jpg/modification-date/20160815/nice-image.jpg
What is the most easy way to get the actual