private void generateActionList(Service serviceModel, Document descriptor, Element scpdElement) { Element actionListElement = appendNewElement(descriptor, scpdElement, ELEMENT.actionList); for (Action action : serviceModel.getActions()) { if (!action.getName().equals(QueryStateVariableAction.ACTION_NAME)) generateAction(action, descriptor, actionListElement); } }
@SuppressWarnings("unchecked") @Override public ActionInvocation<RemoteService> getActionInvocation() { final Action<RemoteService> action = service.getAction(actionName); if (action == null) { throw new ClingRouterException( "No action found for name '" + actionName + "'. Available actions: " + Arrays.toString(service.getActions())); } @SuppressWarnings("rawtypes") final ActionArgumentValue[] argumentArray = getArguments(action); return new ActionInvocation<RemoteService>(action, argumentArray); }