Package com.kurento.kmf.jsonrpcconnector

Examples of com.kurento.kmf.jsonrpcconnector.Props


    if (params.has(ONEVENT_SUBSCRIPTION)) {
      subscription = params.get(ONEVENT_SUBSCRIPTION).getAsString();
    }
    String type = params.get(ONEVENT_TYPE).getAsString();
    JsonObject jsonData = (JsonObject) params.get(ONEVENT_DATA);
    Props data = JsonUtils.fromJson(jsonData, Props.class);

    eventHandler.processEvent(objectRef, subscription, type, data);
  }
View Full Code Here


   * @param params
   * @return Properties holding flattened params
   */
  public Props flattenParams(Props params) {

    Props properties = new Props();
    for (Prop prop : params) {
      properties.add(prop.getName(), flattenParam(prop.getValue()));
    }
    return properties;
  }
View Full Code Here

              propName, result, e);
        }
      }
    }

    return new Props(propsMap);
  }
View Full Code Here

              propName, param, e);
        }
      }
    }

    return new Props(propsMap);
  }
View Full Code Here

public class ParamAnnotationUtils {

  public static Props extractProps(Annotation[][] annotations, Object[] args)
      throws ProtocolException {

    Props props = null;

    if (args != null && args.length > 0) {

      props = new Props();
      for (int i = 0; i < args.length; i++) {

        Param param = getParamAnnotation(annotations[i]);
        props.add(param.value(), args[i]);
      }
    }

    return props;
  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.jsonrpcconnector.Props

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.