Wednesday, 4 February 2015

Invoking AEM Sling Servlets using Apache HTTP APIs

You can invoke a Sling Servlet deployed within Adobe Experience Manager by using Java APIs located in the org.apache.commons.httpclient.HttpClient package. This Java package contains classes that let you perform HTTP operations such as invoking a Servlet's doGet method. For information about this Java package, see Package org.apache.commons.httpclient.

Assume that you have a business requirement to invoke a deployed AEM Sling Servlet from another AEM service defined within an OSGi bundle. You can perform this use case by using a org.apache.commons.httpclient.HttpClient object.  

To read this development article, click:

Adobe Digital Marketing Community

Join the Adobe Digital Marketing Community. Start by clicking this banner

About the Author

I (Scott Macdonald) am a Senior Digital Marketing Community Manager at Adobe Systems with over 16 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more CQ or other Adobe Digital Marketing end to end articles like this, then leave a comment and let me know what content you would like to see.
TwitterFollow the Digital Marketing Customer Care team on Twitter @AdobeMktgCare.

No comments:

Post a Comment