Package com.kurento.kmf.jsonrpcconnector.internal

Examples of com.kurento.kmf.jsonrpcconnector.internal.JsonRpcRequestSenderHelper


    this.clientPool = clientPool;

    this.localHandlerAddress = localHandlerAddress;

    this.rsHelper = new JsonRpcRequestSenderHelper() {
      @Override
      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {
        try {
          return internalSendRequestThrift(request, resultClass);
View Full Code Here


    private HttpRequestServerSession(String sessionId, Object registerInfo,
        SessionsManager sessionsManager, String internalSessionId) {

      super(sessionId, registerInfo, sessionsManager, internalSessionId);

      setRsHelper(new JsonRpcRequestSenderHelper(sessionId) {

        @Override
        protected <P, R> Response<R> internalSendRequest(
            Request<P> request, Class<R> resultClass)
            throws IOException {
View Full Code Here

    clientId = queue.getName();

    rabbitTemplate = rabbitMqManager.createClientTemplate();

    this.rsHelper = new JsonRpcRequestSenderHelper() {
      @Override
      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {
        return internalSendRequestBroker(request, resultClass);
      }
View Full Code Here

  }

  public JsonRpcClientHttp(String url, HttpHeaders headers) {
    this.url = url;
    this.rs = new HttpResponseSender();
    this.rsHelper = new JsonRpcRequestSenderHelper() {
      @Override
      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {
        return internalSendRequestHttp(request, resultClass);
      }
View Full Code Here

    // Append /ws to avoid collisions with http
    // Append /websockets to point to websocket interface in SockJS
    this.url = url + "/ws/websocket";

    rsHelper = new JsonRpcRequestSenderHelper() {
      @Override
      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {

        return internalSendRequestWebSocket(request, resultClass);
View Full Code Here

    this.remoteHandler = handler;
    this.remoteHandlerManager.setJsonRpcHandler(remoteHandler);

    session = new ClientSession("XXX", null, this);

    rsHelper = new JsonRpcRequestSenderHelper() {
      @Override
      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {
        return localSendRequest(request, resultClass);
      }
View Full Code Here

        JsonObject.class);

    final Response<JsonObject>[] response = new Response[1];

    ClientSession clientSession = new ClientSession("XXX", null,
        new JsonRpcRequestSenderHelper() {

          @Override
          protected void internalSendRequest(
              Request<? extends Object> request,
              Class<JsonElement> clazz,
View Full Code Here

    super(sessionId, registerInfo, sessionsManager, wsSession.getId());

    this.wsSession = wsSession;

    this.setRsHelper(new JsonRpcRequestSenderHelper(sessionId) {
      @Override
      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {
        return sendRequestWebSocket(request, resultClass);
      }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.jsonrpcconnector.internal.JsonRpcRequestSenderHelper

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.