Package com.kurento.kmf.jsonrpcconnector.client

Examples of com.kurento.kmf.jsonrpcconnector.client.JsonRpcClientLocal


  private RabbitTemplate template;

  // TODO: Maybe we need to implement a pure JsonRpcServerRabbitMq with
  // handler parameter instead of this client > handler communication
  public JsonRpcServerRabbitMq(JsonRpcHandler<?> handler) {
    this(new JsonRpcClientLocal(handler));
  }
View Full Code Here


  private JsonRpcHandler<? extends Object> handler;

  @Override
  protected JsonRpcClient createJsonRpcClient() {
    return new JsonRpcClientLocal(handler);
  }
View Full Code Here

  protected static RemoteObjectTypedFactory factory;

  @BeforeClass
  public static void initFactory() {
    factory = new RemoteObjectTypedFactory(new RemoteObjectFactory(
        new RomClientJsonRpcClient(new JsonRpcClientLocal(
            new RomServerJsonRpcHandler(
                "com.kurento.tool.rom.test.model", "Impl")))));
  }
View Full Code Here

  private static RemoteObjectTypedFactory factory;

  @BeforeClass
  public static void initFactory() {
    factory = new RemoteObjectTypedFactory(new RemoteObjectFactory(
        new RomClientJsonRpcClient(new JsonRpcClientLocal(
            new RomServerJsonRpcHandler(
                "com.kurento.tool.rom.test.model.server",
                "Impl")))));
  }
View Full Code Here

  private static RemoteObjectTypedFactory factory;

  @BeforeClass
  public static void initFactory() {
    factory = new RemoteObjectTypedFactory(new RemoteObjectFactory(
        new RomClientJsonRpcClient(new JsonRpcClientLocal(
            new RomServerJsonRpcHandler(
                "com.kurento.tool.rom.test.model.server",
                "Impl")))));
  }
View Full Code Here

  protected static RemoteObjectTypedFactory factory;

  @BeforeClass
  public static void initFactory() {
    factory = new RemoteObjectTypedFactory(new RemoteObjectFactory(
        new RomClientJsonRpcClient(new JsonRpcClientLocal(
            new RomServerJsonRpcHandler(
                "com.kurento.tool.rom.test.model", "Impl")))));
  }
View Full Code Here

  @Test
  public void echoTest() throws Exception {

    LOG.info("Client started");

    JsonRpcClient client = new JsonRpcClientLocal(new EchoJsonRpcHandler());

    Params params = new Params();
    params.param1 = "Value1";
    params.param2 = "Value2";

    Params result = client.sendRequest("echo", params, Params.class);

    LOG.info("Response:" + result);

    Assert.assertEquals(params.param1, result.param1);
    Assert.assertEquals(params.param2, result.param2);

    client.close();

    LOG.info("Client finished");

  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.jsonrpcconnector.client.JsonRpcClientLocal

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.