Wednesday, April 5, 2017

How to create custom renderer for a file type in AEM

Use Case:

Honestly use cases for this could be different based on what you want to change in response for a specific file type. We will take an example where we want to add some custom header for a PDF file based on what author has added in property of that file. For example here if author has added a canonical url and no index property, then we want to add these property in response header of all pdf file request.

Prerequisite:

Note that in order to make these property available for asset, you have to override asset editor as well. One example of adding extra property to asset editor is here http://www.wemblog.com/2013/01/how-to-associate-cug-with-dam-asset-in.html

Implementation:
Key here is OptingServlet https://sling.apache.org/apidocs/sling7/org/apache/sling/api/servlets/OptingServlet.html which get invoked on every request. Here is one example

Note: Let me know if you have any question about implementation.

105 comments:

  1. Excellent and nice post. It will beneficial for everyone. Thanks for sharing such a wonderful post. Avail No 1 custom essay writing help UK from certified PhD writers. It is extremely helpful for me. You can email us at info@ukdissertationhelp.co.uk or Phone Number - 020 8144 9988

    ReplyDelete
  2. My Assignment Services is one such Online Assignment Help provider which provides a helping hand to all your academic related queries. They have a lot of professional experts who are skilful in giving you guidance and providing you with cheap assignment help services. You are free to contact their experts by visiting their website and get your pending presentations completed on the time. Given below are some of the steps that they follow while drafting your assignments. Many students see that Assignment Help UK experts are proficient in writing your assignments but no one wonders the reason behind it. However, students pursuing IT need to understand the concepts of Java because it holds down the concept of object oriented programming. The programming concepts are complex to understand and brings a havoc to students, that is why, My Assignment Services bring you our online assignment help services. Taking out some time to consider and contrast about what options that you have that you can include by writing them on a piece of paper. You can also contact some real time Deakin Referencing Generator experts to assist you with the following topics.

    ReplyDelete
  3. Thanks a lot for sharing this blog. I was searching for this topic for a while. Glad that I came across your blog. Great effort. Do share more.
    Cloud Computing Training in Chennai
    DevOps Training in Chennai
    Cloud computing Training
    RPA Training in Chennai
    AWS Training in Chennai
    Cloud Computing Courses in Chennai

    ReplyDelete
  4. You can take the help of assignments from AbAssignmentHelp. They provide assignment help services in the UK for more than a decade for universities and colleges.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Wow its great post. I searched online many times these types of post. I am happy to find this wonderful blog. Thank you very much for sharing this blog with us. I must share this with others. If you Do my Assignment.

    ReplyDelete
  7. Thank you for sharing this informative post.MyAssignmenthelp is giving assignment help to students.we are already trusted by thousands of students who struggle to write their academic papers and also by those students who simply want paper writing service
    to save their time and make life easy.

    ReplyDelete
  8. Awesome content! You have shared an informative blog post. I am an online paper writing services expert and this piece of information helps me a lot.

    ReplyDelete
  9. Wondering for the free instant essay typer online? Your search ends here as you can have your essays, assignments, articles etc instantly.
    At Essayassignmenthelp, the strength of 500+ experts, we guarantee to provide you impeccable college essays at very reasonable prices that any student can afford to. We never compromise with our quality while providing reasonable essay writing help. Our experienced essay writers understand what phrases and sentences the essay evaluators want to see in the content.

    ReplyDelete
  10. The following is a list of PROPERTY MANAGEMENT COMPANY in new York City rental property managers in our database.

    ReplyDelete
  11. We have some important evaluative essay topics which range from educational system to politics. The students can choose from these topics or they can also select a topic of their own.

    ReplyDelete
  12. This is an awesome post.Really very informative and creative contents.
    SEO company in Chennai

    ReplyDelete
  13. Nice to see this blog. Really this is an amazing blog and also informative and valuable. Visit for
    Programming Assignment Help
    My Assignment Help

    ReplyDelete
  14. Packers and Movers Hyderabad Give Certified and Verified Service Providers, Cheap and Best ###Office Relocation Charges, ***Home Shifting, ✔✔✔Goods Insurance worth Rs. 10,000, Assurance for Local and Domestic House Shifting. Safe and Reliable Household Shifting Services in Hyderabad with Reasonable Packers and Movers Price Quotation @ Packers And Movers Hyderabad

    ReplyDelete
  15. if you are searching for assignment help then i suggest you contact us. We provide the best assignment help online at affordable prices.
    Assignment Help Australia
    my assignment help

    free grammar check

    ReplyDelete
  16. Nice image visibility and well written blog. Thanks for sharing. I have recently come across a new online service provider company which provides Shifting Services .
    Packers And Movers Bangalore

    ReplyDelete
  17. it was exceptionally valuable for me.keep sharing such thoughts later on also. A debt of gratitude is in order for sharing the valuable data. phd dissertation help

    ReplyDelete
  18. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites! @ Packers and Movers Ahmedabad

    ReplyDelete
  19. Excellent information Providing by your Article, thank you for taking the time to share with us such a nice article. Amazing insight you have on this, it's nice to find a website that details so much information about different artists. Kindly visit the LiveWebTutors website we providing the best assignment help services in Australia.

    For More Info: Online Assignment Help

    ReplyDelete
  20. I suggest all members choose assignment help Australia for the best guideline in your academia. The perfect and expert assistant your requirement and learning assignment project by the university.

    ReplyDelete
  21. Facing Issue In Installing The Printer With Laptop Contact Epson Support

    You want to install the printer with the laptop but you are confronting some issue, contact Epson Support. You will get information regarding how to install the printer on the Internet but you still need more information then please free to contact us. Our professionals will accurately assist you. We have highly talented professionals who work with dedication and commitment all round the clock. Moreover, we promise to keep your account details secure.

    ReplyDelete
  22. Get Necessary Troubleshooting Guidance At Hp Support Assistant

    Whenever you find the need of the right troubleshooting guidance for the purpose of troubleshooting all technical or non technical problems, you need to avail Hp Support Assistant directly from the professionals who will help you to eradicate the whole host of your printer related problems in a couple of seconds.


    ReplyDelete
  23. Nice blog, it's so knowledgeable, informative, and a good-looking site. Myassignmenthelpau is a great platform that has been performing astonishingly well. If yes, then you are on the right platform to receive the best Essay writing service at an affordable price. They provide transparent and trusted work satisfying universal clientele each year.

    ReplyDelete
  24. Thanks for sharing such a valuable information...
    SEO Training in Bangalore | SEO Course Fees | Best SEO Classes - Join SEO Training in Bangalore at i Digital Academy and learn how to increase your website Traffic by
    Google Certified Trainers with 100% Placements and affordable course fees. Book a Free Demo!

    ReplyDelete
  25. If you are facing problem in your printing devices and you want to keep a regular check on your device, for example Scanning issues such as mechanism faults, firewalls and error messages, HP Printer Not printing, disconnection of the printer, and print the stuck job in the print line can also be quickly identified and solved. For that you have to take assistance from HP Printer Support. Tell us the issue so we get you to the right step and so that we can offer relevant tips.

    ReplyDelete
  26. Have you got locked out of your Mac, It's easy to panic if you are facing the situation but you can reset it and get back in to your mac account. you have to follow some steps and you will be able to reset mac computer. and you can also contact mac

    ReplyDelete
  27. If one is using an HP Laptop with a touch screen then sometimes people wants to turn off the touch screen of their laptop to work properly on it. If you want to know more about how to turn off the touch screen on HP laptop.

    ReplyDelete
  28. Great, i must say and thanks for sharing this informative post.I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, MyAssignmenthelp.com is giving help to students who is stressed with their homework help and submit their assignment on time.we are already trusted by thousands of students who struggle to write their academic papers and also by those students who simply want homework academic writing service to save their time and make life easy

    ReplyDelete
  29. Nice blog, it’s so knowledgeable, informative, and good looking site. I appreciate your hard work. Good job. Thank you for this wonderful sharing with us. Keep Sharing.
    Digital Marketing Course In Kolkata
    Web Design Course In Kolkata

    ReplyDelete
  30. www.SingaporeAssignmentHelp.com is a platform where you can get all your assignment help; these assignments can be associated with cheap essay writing service

    ReplyDelete
  31. Top Salesforce Consulting FirmsI really want to appreciate the way to write this article.Salesforce Consulting Company It seems that you are very professional and intelligent on the above topics of writing. What Is Salesforce Trailhead

    ReplyDelete
  32. IAS Coaching In DelhiI really want to appreciate the way to write this article.UPSC Coaching In DelhiIt seems that you are very professional and intelligent on the above topics of writing. UPSC Coaching In Mukherjee Nagar

    ReplyDelete
  33. My Assignment help have a wide range of professional essay typer ready to provide essay assignment help or essay help to the students by presenting top quality essays, keeping in mind the instruction provided by their professors.

    ReplyDelete
  34. Nice article. I liked very much. All the informations given by you are really helpful for my research. keep on posting your views.
    ccna course in Chennai
    ccna Training in Chennai
    ccna Training institute in Chennai
    ccna institute in Chennai
    Best CCNA Training Institute in Chennai

    ReplyDelete
  35. If you are struggling with your leadership assignment help and need urgent leadership assignment writing help then contact us anytime to avail our finest academic writing help. Our aim is to help you in achieving excellent grades and enhance your career growth.

    ReplyDelete
  36. Quite interesting post you made. It's good shared information and the article is pretty helpful. I like the write-up's structure and flow, as it kept me engaged all this time. Read more- assignment help

    ReplyDelete
  37. Want to fly comfortably but without exceeding your budget? Call our experts for hassle-free Alaska Airlines Book a Flight experience. We are available 24/7.

    ReplyDelete
  38. Assignment Help is something most students are actively and constantly searching for assignment writing, regardless of their academic level. Students who lack knowledge and skills to develop proper assignment writing fears hearing the writing of word assignments. online assignment help is all you need to relieve the tension in these circumstances. By that point, the writing of the assignment is just what you need. They provide 100 per cent positive outcomes to customers, including providing expert advice and services. We offer top service assignment help Australia by 1000+ native experts with record of on time delivery. Get your modification done online for any subject assignment. Securing high grades made easy with assignment help.

    ReplyDelete
  39. Through Hawaiian Airlines Book A Flight get all flight information in no time and makes your journey comfortable. Contact us now, we are available 24*7!

    ReplyDelete
  40. Doing Good work. Keet it Up - Checkout Our List Of
    Mi Upcoming Phones

    ReplyDelete
  41. There are academic nursing writing help companies whose ultimate goal is to provide Help with Nursing Writing Services since they are aware most nursing essay writing service part-time students lack enough time to complete their college custom nursing assignments.

    ReplyDelete
  42. Getting bored during lockdown, now play Rummy online on the go and experience unmatched thrill and excitement with our Rummy app! Join now to get a 110% Bonus and multiply the fun by winning unbelievably huge real cash prizes! Check the latest promotions, rummy tournaments, news and updates in our rummy blog section.

    ReplyDelete
  43. Engineering assignment writing services are essential for college & university engineering research paper services seekers and Engineering Writing Services.

    ReplyDelete
  44. When you search for Rehabilitation Centers, it became difficult in the initial stage to get in touch with anyone. Our helpdesk is here for you. Call now.

    ReplyDelete
  45. This could be the proper weblog for everyone who is really wants to be made aware of this topic. You recognize a great deal of its nearly difficult to argue together with you (not that I just would want…HaHa). share more
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  46. From student forums for discussion to websites that offer assignment writing help online, there is no dearth of resources for students on the internet these days.

    ReplyDelete


  47. Confused which phone to buy after this coronavirus is over. - Checkout Our List Of
    Samsung Upcoming Phones

    Doing Good work. Keet it Up - Checkout Our List Of
    Mi Upcoming Phones

    Best external ssd for gaming

    best gaming phone under 20000

    Mi 11 Pro

    best gaming phone under 15000

    Redmi 10X


    ReplyDelete
  48. Medical research paper writing services seekers have been on the rise lately since most learners need Medical Assignment Writing Services, medicine essay writing help and nursing essay writing services.

    ReplyDelete
  49. I thank you for the information and articles you provided cara menggugurkan kandungan

    ReplyDelete
  50. The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. machine learning projects for final year In case you will succeed, you have to begin building machine learning projects in the near future.

    Projects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.


    Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.

    ReplyDelete
  51. Don’t wait. Call us now on our Southwest Phone Number Helpline, reserve your seats in an instant and fly to your destination with pride.

    ReplyDelete
  52. Our team ensures you that you will get the best yet budgeted flight tickets from us. You need to quickly call at Air China Phone Number helpline toll free number and seek help for booking tickets. And not only that we can get all kinds of assistance and guidance on any of your issues regarding your air travel.

    ReplyDelete
  53. Traveling is an experience that is mandatory for everyone to enjoy as many times as you can. The team at Lufthansa Airlines Phone Number believes that one must take this experience frequently. And to make this dream possible the airlines not only offers but amazing services that help to make travel comfortable for all.

    ReplyDelete
  54. If you are looking to the travel within the US, Mexico and the Caribbean in comfort and in the budget, then make sure to contact the experts available at Sun Country Phone Number and get all the necessary information regarding baggage, cabin classes, in-flight services and more. Get to avail amazing offers, deals, discounts and packages

    ReplyDelete

  55. when you plan a holiday, our only goal is to make it budget-friendly and completely hassle-free for you. So you can enjoy your travel with full of comfort. Now go travel with your partners or family to strengthen your bonds and enjoy more quality time together by booking your airline’s ticket thought Southwest Airlines Phone Number.

    ReplyDelete
  56. We are a team of trained, skilled and experienced travel specialists who work round-the-clock to give you the best advantage when it comes to booking your seats with Allegiant Airlines. Call us at our Allegiant Airlines Customer Care phone number. We understand that when any idea of journey strikes.


    ReplyDelete
  57. We at American Airlines Phone Number abide by the idea of delivering the best of services for you.

    ReplyDelete
  58. When you choose us over others to make your reservations, we assure you to get your hands on the market’s best deals & discounts that can provide you the affordable journey of your life. Choosing our Frontier Airlines Reservations can help you to grab all the exclusive discounts, coupon codes, rewards & deals that are immensely amazing.

    ReplyDelete
  59. Nice post!..good information,it is really helpful..it really impressed me alot and i just loved it.Thanks for posting such an informative content:
    Local Packers And Movers Bangalore

    ReplyDelete
  60. The trust the people have with this airline is excellent and thus, our services are on par with the airline itself. Here, we offer a clear pathway of booking where the passenger is given all the information with fare charges. The benefit of booking with Spirit Contact Number is you will get your tickets booked at the most reasonable fares.

    ReplyDelete
  61. Some of the luxurious services that you get when you contact us via Spirit Airlines Phone Number.

    ReplyDelete
  62. With the assistance of United Airlines Manage Booking for get advantages offer at cheapest price feature, United passengers can also make changes in areas like flight time, date or route, etc.

    ReplyDelete
  63. Getting affordable flight tickets is now possible and easy. If you are also among those people who wants to travel and explore the world but in low-budget, then this is the right place for you. By connecting with the professionals available at Southwest Airlines Customer Service you will get to know about the various offers and deals which will be beneficial for you.

    ReplyDelete
  64. Get connected with our customer service number and make your American Airlines Date Change now. Also, know about how to cancel and get a refund on southwest tickets by connecting with the experts. And know everything about American Date Change policy.

    ReplyDelete
  65. Not finding the right deal for your dream destination? Our Southwest Airlines Phone Number helpdesk is there to provide you the greatest packages that suit your choice & provide you the utmost comfort during your journey.

    ReplyDelete
  66. Implemented the custom PDF servlet to cahce the canonical link do we need to add link in the /cache -> /header section of dispatcher. becauese whenever request is serving from the server canonical is showing. but from dispatcher it is not showing. dispatcher: no-cache that all removed. please help me

    ReplyDelete
  67. Traveling is something that can either make beautiful memories or provide you bad memories, but it is actually up to you from whom you are taking services. Our Southwest Airlines Customer Service helpdesk is there for you to provide you all the great comfort so that you won’t face any trouble. We will deliver you the most genuine services that can make you feel comfortable & vibrant while traveling.

    ReplyDelete
  68. Experiencing hassle? People who are getting worried regarding air journey issues can contact the team. When you call us at Southwest Airlines Phone Number, we will give you the range of mini-guide to ease your nerve and our guide will help you throughout your journey.

    ReplyDelete
  69. Get all information you need about flying by visiting the United Airlines Official Site. Also, get solutions to all policies & FAQs only on United Official Site. Contact the team to get expert support so that you can travel hassle-free. Better to forget the enormity of the reservation process and manage to book, just share your concern to the team to buff up your shoulder.

    ReplyDelete
  70. I appericiate your comments i want to share that Get all data about the flight booking at southwest airlines phone number, the brisk and proficient helpline helping a large number of travelers

    ReplyDelete
  71. Experiencing hassle? People who are getting worried regarding air journey issues can contact the team. When you call us at Southwest Airlines Phone Number, we will give you the range of mini-guide to ease your nerve and our guide will help you throughout your journey.

    ReplyDelete
  72. If you are looking to make American Airlines Reservations, then look no further and connect with the experts by dialing American Airlines Reservations Number. The experts available will provide amazing offers, deals and discounts to the customers as per the needs and requirements.

    ReplyDelete
  73. Get in touch with the experts of Southwest Airlines Reservations and know everything about the precautionary methods that you should take before travelling. They will help you in getting to know about the details. So, before making Southwest Reservations make sure to check the above mentioned points from the experts.

    ReplyDelete
  74. Plan your trip to the beautiful places and give yourself a break from the hectic lifestyle. Dial Spirit Airlines Contact Number and book discounted tickets in no time. The experts available will help and assist you with everything. Also, you can enhance an amazing experience through your booking with Spirit Airlines.

    ReplyDelete
  75. I and my friends often read your posts and discuss on them. We get valuable information through your posts. Thanks a lot.
    java training institute in noida

    ReplyDelete
  76. Your post is very great.i read this post this is a very helpful. i will definitely go ahead and take advantage of this. You absolutely have wonderful stories.Cheers for sharing with us your blog. python training in noida

    ReplyDelete