Examples of WoTDisconnectedException


Examples of plugins.Freetalk.exceptions.WoTDisconnectedException

   * @throws WoTDisconnectedException If the connection to WoT was lost.
   * @throws Exception If the WoT plugin replied with an error message or not with the expected message.
   */
  private PluginTalkerBlocking.Result sendFCPMessageBlocking(SimpleFieldSet params, Bucket data, String expectedReplyMessage) throws Exception {
    if(mTalker == null)
      throw new WoTDisconnectedException();
   
    PluginTalkerBlocking.Result result;
    try {
      result = mTalker.sendBlocking(params, data);
    } catch (PluginNotFoundException e) {
      throw new WoTDisconnectedException();
    }
   
    if(result.params.get("Message").equals("Error")) {
      final String description = result.params.get("Description");
     
View Full Code Here

Examples of plugins.Freetalk.exceptions.WoTDisconnectedException

        } catch (InvalidParameterException e) {
        }
      }
    }
    catch(PluginNotFoundException e) {
      throw new WoTDisconnectedException();
    }
    return result;
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.WoTDisconnectedException

    try {
      SimpleFieldSet answer = sendFCPMessageBlocking(request, null, "TrustersCount").params;
      return Integer.parseInt(answer.get("Value"));
    }
    catch(PluginNotFoundException e) {
      throw new WoTDisconnectedException();
    }

  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.WoTDisconnectedException

    try {
      SimpleFieldSet answer = sendFCPMessageBlocking(request, null, "TrustersCount").params;
      return Integer.parseInt(answer.get("Value"));
    }
    catch(PluginNotFoundException e) {
      throw new WoTDisconnectedException();
    }
  }
View Full Code Here

Examples of plugins.Freetalk.exceptions.WoTDisconnectedException

    try {
      SimpleFieldSet answer = sendFCPMessageBlocking(request, null, "TrusteesCount").params;
      return Integer.parseInt(answer.get("Value"));
    }
    catch(PluginNotFoundException e) {
      throw new WoTDisconnectedException();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.