Can you confirm if this would be the recommended approach for accessing DMI.call(...) requestParams (i.e. additional properties on RPC request).
It appears to function as expected, however, I couldn't see a getter for "ctx.request", so I have a feeling this might not be the recommended approach. The RPCRequest doesn't seem to have a getHttpServletRequest() method like DSRequest.getHttpServletRequest().
Thanks
Client:
Server:
It appears to function as expected, however, I couldn't see a getter for "ctx.request", so I have a feeling this might not be the recommended approach. The RPCRequest doesn't seem to have a getHttpServletRequest() method like DSRequest.getHttpServletRequest().
Thanks
Client:
Code:
RPCRequest requestParams = new RPCRequest(); Map<String, String> params = new HashMap<String, String>(); params.put("param", "paramValue"); requestParams.setParams(params); DMI.call(xxx, xxx, xxx, xxx, xxx, requestParams);
Code:
handleRPCRequest(RPCRequest req, RPCManager mgr, RequestContext ctx) { String parameter = ctx.request.getParameter("param"); }
Comment