Package com.almende.eve.rpc.jsonrpc

Examples of com.almende.eve.rpc.jsonrpc.JSONMessage


   * @throws IOException
   *             Signals that an I/O exception has occurred.
   */
  private JSONResponse receive(final Object arg) throws JSONRPCException,
      IOException {
    final JSONMessage jsonMsg = Agent.jsonConvert(arg);
    if (jsonMsg instanceof JSONResponse) {
      return (JSONResponse) jsonMsg;
    }
    return null;
  }
View Full Code Here


   * @throws IOException
   *             Signals that an I/O exception has occurred.
   */
  private JSONResponse receive(final Object arg) throws JSONRPCException,
      IOException {
    final JSONMessage jsonMsg = Agent.jsonConvert(arg);
    if (jsonMsg instanceof JSONResponse) {
      return (JSONResponse) jsonMsg;
    }
    return null;
  }
View Full Code Here

   * @param msg
   *            the msg
   * @return JSONMessage
   */
  public static JSONMessage jsonConvert(final Object msg) {
    JSONMessage jsonMsg = null;
    try {
      if (msg instanceof JSONMessage) {
        jsonMsg = (JSONMessage) msg;
      } else {
        ObjectNode json = null;
View Full Code Here

   */
  @Override
  public void receive(final Object msg, final URI senderUrl, final String tag) {
    JsonNode id = null;
    try {
      final JSONMessage jsonMsg = jsonConvert(msg);
      if (jsonMsg != null) {
        if (jsonMsg.getId() != null) {
          id = jsonMsg.getId();
        }
        if (jsonMsg instanceof JSONRequest) {
          final RequestParams params = new RequestParams();
          params.put(Sender.class, senderUrl.toASCIIString());
         
View Full Code Here

   * @param msg
   *            the msg
   * @return JSONMessage
   */
  public static JSONMessage jsonConvert(final Object msg) {
    JSONMessage jsonMsg = null;
    try {
      if (msg instanceof JSONMessage) {
        jsonMsg = (JSONMessage) msg;
      } else {
        ObjectNode json = null;
View Full Code Here

   */
  @Override
  public void receive(final Object msg, final URI senderUrl, final String tag) {
    JsonNode id = null;
    try {
      final JSONMessage jsonMsg = jsonConvert(msg);
      if (jsonMsg != null) {
        if (jsonMsg.getId() != null) {
          id = jsonMsg.getId();
        }
        if (jsonMsg instanceof JSONRequest) {
          final RequestParams params = new RequestParams();
          params.put(Sender.class, senderUrl.toASCIIString());
         
View Full Code Here

TOP

Related Classes of com.almende.eve.rpc.jsonrpc.JSONMessage

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.