Resourcetype servlet resolution

ajinkayk6258253

19-08-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Arun_Patidar

MVP

19-08-2019

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