Request handler path

2
Hi All, I've set up a request handler with code below in a java action. I'm able to receive HTTP requests using http://localhost:8080/odataV2/, but when I change the path of the request handler to "/api/odata" or "test/api/" I get a "404 - file not found for file: test/api/" error. Is there a general format for the path string parameter of the addRequestHandler method?   Core.addRequestHandler("odataV2/", new ODataRequestHandler()); Core.getLogger("RequestHandlers").info("Registered OData requesthandler for 'odataV2/'"); return true;  
asked
1 answers
7

As far as I know you can only register the top level path.

i.e. in your example your would register

test/
api/

You would then need to handle the full path in that requesthandler

regards, Fabian

answered