Package me.z80.cxf.utils

Examples of me.z80.cxf.utils.WSClientFactory


      List<DBObject> objects = new ArrayList<DBObject>(beans.size());
      for(Message bean : beans)
      {
        if (exists(bean.getGuid()))
        {
          throw new DBException("Message with GUID: "+bean.getGuid()
              + " already exists");
        }
        objects.add(generateDoc(bean));
      }
View Full Code Here


      return collection.count(query) > 0;
    }
    catch(Exception e)
    {
      throw new DBException("Failed to query messagse for guid: "+messageGuid, e);
    }
  }
View Full Code Here

    try
    {
      Message msg = getMessage(messageId);
      if (msg == null)
      {
        throw new DBException("No such message: "+messageId);
      }

      msg.getMetaTags().put(key, value);
      save(msg);
    }
View Full Code Here

    try
    {
      Message msg = getMessage(messageId);
      if (msg == null)
      {
        throw new DBException("No such message: "+messageId);
      }

      msg.getResponderStates().put(responderId, state);
      save(msg);
    }
View Full Code Here

      DBObject dbObj = collection.findOne(query);
      return deserialise(dbObj, Message.class, true);
    }
    catch(Exception e)
    {
      throw new DBException("Failed to find message with guid: "+guid, e);
    }
  }
View Full Code Here

//      long count = collection.find(query).count();
      return count;
    }
    catch(Exception e)
    {
      throw new DBException("Failed to query messages for topic: "+topicGuid, e);
    }
  }
View Full Code Here

      }
      return docs;
    }
    catch(Exception e)
    {
      throw new DBException("Failed to query messages for topic: "+topicGuid, e);
    }
  }
View Full Code Here

      }
      return docs;
    }
    catch(Exception e)
    {
      throw new DBException("Failed to list messages", e);
    }
  }
View Full Code Here

      }
      return docs;
    }
    catch(Exception e)
    {
      throw new DBException("Failed to get specified messages for: "+topicId
          + ", timestamp > "+new Date(afterTimestamp)
          + ", prefLimit: " + preferredLimit, e);
    }
  }
View Full Code Here

      }
      return ids;
    }
    catch(Exception e)
    {
      throw new DBException("Failed to get specified message IDs for: "+topicId
          + ", timestamp > "+new Date(afterTimestamp), e);
    }
  }
View Full Code Here

TOP

Related Classes of me.z80.cxf.utils.WSClientFactory

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.