Expand my Community achievements bar.

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



Arun Patidar

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



Arun Patidar