How to add custom request handler for mendix app

1
Hello Everyone!  I have followed this blog how to add the request handler to my mendix app. https://www.mendix.com/blog/requesthandlers-at-your-service/ and tried to add helloWorldRequestHandler but couldn’t able to do it. It gave me error for IOUtilis So I have added the org.apache.commons.io.* in the library still the methods write, closeQuitely were deprecated.                   So can anyone please suggest me, How can I achieve adding custom request handler to my app in understandable manner.   Regards, Vignesh Kannan
asked
2 answers
1

That is quite an old blog, it is likely that the same code will no longer work. Adding request handlers is not too complicated. Take a look at the documentation: 
https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/Core.html#addRequestHandler

You can also check on github for some examples https://github.com/hgeldenhuys/Monolith-main/blob/aac484da95cfeaf9363372bc3ac77b425f9a0375/javasource/appcloudservices/actions/StartSignOnServlet.java

Hope this helps

 

answered
0

Hi Vignesh,

Mendix’ DeepLink module implements custom requesthandlers and is more properly written within Java. Please check the javasource folder of that module to see how custom requesthandlers are properly implemented in Java.

I used this module as an example in the past!

Good luck!

answered