Resourcetype servlet resolution | Community
Skip to main content
ajinkayk6258253
Level 3
August 19, 2019
Solved

Resourcetype servlet resolution

  • August 19, 2019
  • 2 replies
  • 2256 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 19, 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

Arun Patidar
ajinkayk6258253
Level 3
August 19, 2019

thanks a lot arun for help.