Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Resourcetype servlet resolution

Avatar

Level 3

Hi All,

As "AssetDownloadServlet" is registered with following properties:-

@Properties({@Property(
  name
= "sling.servlet.resourceTypes",
  
value = {"sling/servlet/default"}
), @Property(
  name
= "sling.servlet.methods",
  
value = {"GET", "POST"}
), @Property(
  name
= "sling.servlet.selectors",
  
value = {"assetdownload"}
)})

then how this servlet get invoked from a ajax call having url pathtoaasset.assetdownload.zip/suffix? since an aem asset doesn't have a resourcetype property either?

can someone provide me more details about this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

It get invoke using selector assetdownload

and  sling/servlet/default is used to registered a servlet as default servlet which executes for all the requests.

Apache Sling :: Servlets and Scripts

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

It get invoke using selector assetdownload

and  sling/servlet/default is used to registered a servlet as default servlet which executes for all the requests.

Apache Sling :: Servlets and Scripts