AnsweredAssumed Answered

Implicit argument in AbstractWebScript

Question asked by raghav on Mar 30, 2017
Latest reply on Mar 30, 2017 by raghav

New to Alfresco.

I am writing Java-backed AbstractWebScript. I need to use implicit arguments.


My URI looks like:


The caller will call this URI as: documents/value1/value2


I need to get a handle on param1 and param 2 (and their values) inside the execute method.


public class MyWebScript extends AbstractWebScript{


public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {

   // I need to get the value of param1 and param2 inside this method




My question is:

How do I get a handle on param1 and param2 inside the execute method?


If I defined it as explicit argument in the URI (as /param1=value1&param2=value2), I know that I can get them as req.getParameter("param1") API. But as because I am using the implicit argument (as opposed to explicit argument), how do I get a handle of param1 and param2?